Responsive images that load fast

Offer several sizes and let the browser pick the best one. Width and height stop the page from jumping while loading.

HTML · Responsive images that load fastIntermediate
<img
  src="photo-800.jpg"
  srcset="photo-400.jpg 400w, photo-800.jpg 800w, photo-1600.jpg 1600w"
  sizes="(max-width: 700px) 100vw, 800px"
  width="800" height="533"
  loading="lazy" decoding="async"
  alt="Describe what the picture shows">
imagessrcsetperformance