Open jackjt8 opened 2 years ago
We could as well use AVIF, which has better compression but worse browser support: https://caniuse.com/?search=avif
Is there a way to let the browser select the best image format?
We could as well use AVIF, which has better compression but worse browser support: https://caniuse.com/?search=avif
Is there a way to let the browser select the best image format?
If we use picture...
<picture>
<source srcset="photo.avif" type="image/avif" />
<source srcset="photo.webp" type="image/webp" />
<img src="photo.jpg" alt="photo" />
</picture>
WEBP is already supported on every major browser, and making more than one image format available might simply result in unnecessary work and storage space being used.
Need to explore if this holds up and migrate everything over.
WebP Browser Support