A comment on my last image post said:
Ship sizes with it. With width descriptors and no sizes , the browser assumes the image is 100vw.
Good advice. I went to check my markup before writing the fix. There was no srcset to add sizes to.
What the page actually has
products.html , 122 <img> tags:
attribute count
srcset 0
sizes 0
loading="lazy" 120
fetchpriority="high" 1
So the post I wrote about lazy loading was accurate and also beside the point. Lazy loading changes when an image is fetched. It does nothing about how big the file is. Every card on that page ships one fixed file, whatever the viewport.
Measuring rendered vs natural
Reading the HTML only tells you the width / height attributes, which are the intrinsic dimensions, not the layout size.…