How to optimize image loading: srcset, sizes, preload, lazy loading and LCP
Choosing AVIF, WebP, JPEG or PNG is only the first step of image optimization. Just as important is when the browser discovers an image, which candidate it selects, which fetch priority it receives and whether layout can reserve its space before the transfer completes. This article focuses only on image delivery: responsive images, LCP, preload, fetchpriority, lazy loading, resource discovery and browser diagnostics.