Implement auto-sizes for lazy-loaded images
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
| Size Estimate | S |
People
(Reporter: zcorpan, Unassigned)
References
()
Details
(Keywords: dev-doc-needed, Whiteboard: [platform-feature][webcompat:risk-low])
User Story
web-feature: sizes-auto
| Reporter | ||
Comment 1•2 years ago
|
||
The spec PR has landed now.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
| Reporter | ||
Updated•2 years ago
|
| Reporter | ||
Comment 3•2 years ago
|
||
Changing component to Layout after discussing with :hsinyi.
auto-sizes is now enabled by default in Chrome https://bugs.chromium.org/p/chromium/issues/detail?id=1359051#c26
| Reporter | ||
Comment 4•1 year ago
|
||
This feature has now been adopted in WordPress 6.7: https://core.trac.wordpress.org/changeset/59008
I also found this PR for react-imgix from a GitHub search.
Chrome use counter is currently < 0.02% but I expect will rise as the above changes get deployed on sites and adoption spreads to other frameworks and libraries. https://chromestatus.com/metrics/feature/timeline/popularity/4750
Without supporting auto, we would likely fetch unnecessarily large images (at least for sites that use only sizes=auto without fallback on images).
Updated•1 year ago
|
| Reporter | ||
Comment 5•7 months ago
|
||
Chrome's use counter is now at ~0.6% of page loads, ~2.5% of httparchive pages.
Shopify has developed a polyfill: https://github.com/Shopify/autosizes
| Reporter | ||
Comment 6•7 months ago
|
||
Per :emilio, DOM: Core & HTML was correct, so changing back.
Updated•6 months ago
|
Updated•5 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•2 months ago
|
Description
•