by mchusma · 5y ago · 0 comments
My understanding is also that you can also use the progressive nature to have 1 "high res" version, and potentially render different sizes for different connections, and do some interesting things. For example, I believe you could (in principal) do something like stop loading after 1s so long as a minimum size level was achieved) - to make things fast on all devices, but only the quality would vary. So if you are on a 4k monitor and gigabit download? You can get massive images. On a 3g phone? Get the basics.
It's a really great feature, and does seem like it would likely have the most real world impact on actual website perceived performance.
At this point I don't really see a reason for AVIF, hardware accelerated decoding could be a benefit, but AFAIK there's no device supporting it.
Oh, and Apple might be less hostile to it, because it's not based on an "anti-MPEG" video codec.
For still images though, I don't really see any major advantage of AVIF over JXL except AVIF being a bit older and already enabled by default in Chrome. I do see several advantages of JXL over AVIF though.
So the way I see it, the future is:
AVIF instead of GIF (and APNG and animated WebP)
JPEG XL instead of JPEG (and PNG and still WebP)
Disclaimer: I am probably biased since I am a jxl dev. Please do your own independent evaluation (and feel free to share your opinions/conclusions with me).