Web platform features explorer

<img sizes="auto" loading="lazy">

The sizes="auto" attribute for the <img> HTML element sets the layout size for the image based on the computed layout size when choosing a source from the srcset. This attribute only applies to images with the loading="lazy" attribute.

Status

Limited availability

Specifications

Browser support

Developer signals

Usage (according to Chrome Platform Status)

~0.695% of page loads. More data at chromestatus.com.

Developer signals

Votes: 2

If you want this feature to be available in all browsers, vote for it by adding a thumbs up reaction (👍) to this GitHub issue, and leave a comment with more information.