- Issue created by @komejo
- Status changed to Needs work
over 1 year ago 6:26pm 30 March 2023 - πΊπΈUnited States johnny5th
Thanks for the patch komejo. I'm not against this idea, but I think there's a fundamental problem with this implementation.
- There's an efficiency issue for sites without the webp module. You should check that the webp module is enabled before running the extension checks.
- If webp images are available, you're not leaving any fallbacks incompatible browsers. You might check out either using a @supports block, or maybe even using an image-set as a source if all browsers that support image-set also support webp: https://developer.mozilla.org/en-US/docs/Web/CSS/image/image-set
- πΊπΈUnited States komejo
Ah, excellent feedback - I'll see if I can find the time to make a better patch!