Add <img loading=after-layout>
to support auto-sizes
#8007
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
topic: img
In #4654 it's proposed to add a way to get the
sizes
value from layout, which would make sense for lazy-loaded images. But it can also be useful for images that load as soon as possible, but after layout. Something in-betweeneager
andlazy
. See #4654 (comment) (@jakearchibald)I'm not aware of use cases for delaying the load of the image except for auto-
sizes
. So to avoid making images slower because developers cargo-cult addloading=after-layout
for no particular reason, we can make it invalid to specify unless the image uses auto-sizes
, and if specified anyway, be equivalent toeager
.Originally posted by @zcorpan in #4654 (comment)
The text was updated successfully, but these errors were encountered: