I’m excited for CSS to help distribute AVIF images! Here’s some demo code that follows current spec drafts:
- if in data saver / lite mode
- match first format supported
- match first resolution supported
- make that image the background
image-set() spec
Jake Archibald: 📝 AVIF has landed!
⬇️ Here’s how to use it today, and how it performs vs other web image formats.
https://jakearchibald.com/2020/avif-has-landed/