You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 5, 2022. It is now read-only.
There's no way to preload just the AVIF, in browsers that support AVIF, and just the JPEG, in browsers that don't support AVIF. The best we can do right now is:
Which preloads the AVIF in browsers that support it, and doesn't preload the JPEG for anyone. Honestly this isn't the worst thing in the world, when preload is framed as an enhancement, but it is kind of a bummer that adopting a bleeding-edge image format forces a performance regression for older/non-supporting browsers.
The text was updated successfully, but these errors were encountered:
(copied over from whatwg/html#6400, at @annevk's reccomendation)
This was originally discussed when we were figuring out
imgsrcset
andimgsizes
, but I encountered it again this week, and I thought it was worth documenting in its own issue.Let's say I have the following
<picture>
There's no way to preload just the AVIF, in browsers that support AVIF, and just the JPEG, in browsers that don't support AVIF. The best we can do right now is:
Which preloads the AVIF in browsers that support it, and doesn't preload the JPEG for anyone. Honestly this isn't the worst thing in the world, when preload is framed as an enhancement, but it is kind of a bummer that adopting a bleeding-edge image format forces a performance regression for older/non-supporting browsers.
The text was updated successfully, but these errors were encountered: