Responsive images, image optimisation
up:: HTML
How to think about HTML responsive images · Dan Cătălin Burzo
From what I understand width
and height
actually just sets the dimensions of the image. This is helpful to avoid layout shifts.
But the actual resolution (which makes the image load slowly) is determined by the srcset
.