4 ms·
just fuking use a poly fill to add support of JPEG XL. Or store JPEG XL and convert on the fly to JPEG to supply it to browsers that don't support JPEG XL.
by Zardoz84 1y ago
just fuking use a poly fill to add support of JPEG XL. Or store JPEG XL and convert on the fly to JPEG to supply it to browsers that don't support JPEG XL.
- throw_m239339 1y ago> just fuking use a poly fill to add support of JPEG XL. Or store JPEG XL and convert on the fly to JPEG to supply it to browsers that don't support JPEG XL. Doesn't a polyfill imply more Javascript running on the device?
- BugsJustFindMe 1y agoOnly until the browser gets updated and then the polyfill stops being invoked automatically. It's self-healing.
- Zardoz84 1y agoTt's a WASM . And really isn't very big. So if you need to store and serve many images files, potentially big images like in an preservation & diffusion software (like the stuff that I'm working), I felt that I could afford to pay the extra few KiBs on that WASM.
- MrDOS 1y agoNo need to bring JavaScript into it. In HTML, use `<picture>`: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/picture https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/... In CSS, use `image-set()`: https://developer.mozilla.org/en-US/docs/Web/CSS/image/image-set https://developer.mozilla.org/en-US/docs/Web/CSS/image/image....