A
arindamb
Took me longer than I'd like to admit to find this one. A plugin was adding loading="lazy" to every image site wide, including the large hero image at the top of each page.
On most pages that hero image was the LCP element. Lazy loading tells the browser to wait on it until it's sure the image is in the viewport, so the one image that mattered most was being fetched later than everything else.
Removing lazy loading from the first image and adding fetchpriority="high" to it fixed most of...
Lazy loading the hero image was what made our LCP slow
Continue reading...
On most pages that hero image was the LCP element. Lazy loading tells the browser to wait on it until it's sure the image is in the viewport, so the one image that mattered most was being fetched later than everything else.
Removing lazy loading from the first image and adding fetchpriority="high" to it fixed most of...
Lazy loading the hero image was what made our LCP slow
Continue reading...