Never lazy-load your LCP image
Find the image that drives Largest Contentful Paint and measure how eager loading changes its request timing.
Your largest contentful paint is later than it should be, and the largest thing on the screen is the hero image. Your template puts loading="lazy" on every <img>, hero included. Lazy loading can delay that request until the browser has worked out which images are near the viewport.
Find the LCP element
Paste this into the console. It logs the newest LCP candidate in each batch. The observer replays buffered entries and can report more candidates before the first interaction.
new PerformanceObserver((list) => {
const e = list.getEntries().at(-1)
console.log(Math.round(e.startTime), e.element?.tagName, e.url)
}).observe({ type: 'largest-contentful-paint', buffered: true })
// 1456 IMG http://127.0.0.1:4131/hero.pngIn this run the last entry identifies the hero image as the largest content painted.
Measure what lazy costs
I built a test page with a hero image and a render-blocking stylesheet. The server holds the stylesheet for 600 ms and the image for 800 ms, and Chromium loads the page at 1280 by 720.
I loaded the lazy page and an eager copy three times each. The LCP was 1476, 1468 and 1468 ms for the lazy page and 844, 864 and 848 ms for the eager one.
The request log shows why. The eager page asked for /hero.png at 17 ms, next to the stylesheet. The lazy page asked for it at 635 ms, right after the stylesheet arrived, so the two waits added up.
Remove lazy from the hero
Remove loading="lazy" from the hero. Use fetchpriority="high" for the likely LCP image and keep its dimensions so the browser can reserve space. Run the observer snippet again afterwards and compare the time.
<img src="/hero.png" width="1200" height="600" alt="" fetchpriority="high">The empty alt text suits a decorative hero. Give an informative image a description. With that tag the LCP was 836, 844 and 852 ms. The plain eager tag scored 844 to 864 ms. These runs compare loading strategies. They do not isolate the effect of changing the image’s priority.
When the image is found late
Put the hero in the initial HTML if you can. If a script must insert it, the browser may discover the image late. A <link rel="preload" as="image"> in the head names the file up front. For a responsive image, match the preload to the image’s source selection so the browser downloads the right file.
<link rel="preload" as="image" href="/hero.png">I tested that with a script that inserts the hero 300 ms after parsing. The LCP was 1752 to 1760 ms without the preload and 956 to 968 ms with it. I keep loading="lazy" for images below the first screen.