3 ms·
> I think I will continue using it with WASM polyfills Images that can't be displayed without Javascript. Incredible.
by matheusmoreira 4y ago
> I think I will continue using it with WASM polyfills
Images that can't be displayed without Javascript. Incredible.
- hirorpt 4y agoI live in a world where Javascript is disabled by default, but I already see many sites where images are not viewable. In the case of JPEG XL, the alternative is to use Firefox and enable the flag, so unlike these sites, the claim that the images cannot be viewed unless Javascript is enabled is not valid.
- niutech 4y agoYou can use <picture> element for a JPEG/PNG/WebP fallback.
- speedgoose 4y agoWhile you need some little JavaScript to initialise it, WebAssembly isn’t JavaScript.
- hypertele-Xii 4y agoThat doesn't counter the fact that it's an image that won't display without JavaScript.
- speedgoose 4y agoTrue. The very very few people who disabled JavaScript will have to add some more websites to their allow list.
- dmitriid 4y agoIt's not the "very-very few". It's the combined population of several large countries. Because you're immediately excluding people on old devices, on underpowered devices, on devices on bad networks, on devices with weird/incomplete/glitchy/limited support for what you need, sites where JS just errors out (and dies, because there are no recovery options if there's a global JS error)... And the list just goes on, and on, and on. The inability of developers to look beyond their latest-and-greatest dev machines with unlimited power and everything under the sun enabled is just mind boggling.
- matheusmoreira 4y agoIt's still images that can't be displayed without Javascript enabled. It's also a distinction without a difference. It's third party code downloaded over the internet and automatically executed on my computer.
- speedgoose 4y agoI was simply a bit pedantic. And also, JavaScript should always be enabled. Very very few people disable it and they are used to have a broken web experience anyway so it’s not an issue to ignore them. Worst case they don’t see pictures until they eventually enable JavaScript. Executing third party code in a sandbox is a security risk. You need to allow a level of risks when you use your computer on internet, and by disabling third party code you are safer but you also have a lot less useful computer.
- rebolek 4y ago> JavaScript should always be enabled. Why? Most pages are static text and images, most pages don't need JS. So why should JS be always enabled?
- h4x0rr 4y agoI think they wanted to say that when you make a website you can pretty much expect everyone to have javascript enabled since it's on by default. Outside of HN IT nerds of course :p
- speedgoose 4y agoWhen I look at the most visited websites, I see mostly web applications that are a bit more complex than static text and images and they all require JavaScript. For sure you could create lightweight versions of many of these applications, without JavaScript and server side generated HTML, but my point is that the users should have JavaScript enabled to browse the web. https://en.m.wikipedia.org/wiki/List_of_most_visited_websites https://en.m.wikipedia.org/wiki/List_of_most_visited_website...
- 4y ago
- yarg 4y agoImages unconstrained by vendor support. Incredible.