Knowing how to lazy load images without delaying LCP starts with separating what the visitor sees immediately from everything else on the page. Native lazy loading defers off-screen images so the browser spends bandwidth on the visible layout first, but applying the same attribute to a hero or banner image can push back Largest Contentful Paint instead of improving it. Classify images by position before adding any loading attribute.
Why should you avoid lazy loading hero images?
Setting loading to lazy tells the browser it can defer fetching that image until it is near the viewport. The exact distance and timing are decided by the browser, not by the page author, so there is no guaranteed moment the image will start downloading. If that attribute ends up on the image that forms the Largest Contentful Paint element, the browser may wait before fetching it, which delays LCP rather than improving it.
Images that are visible in the initial viewport should keep the default eager behavior, meaning you either omit the loading attribute or set it explicitly to eager. This applies to hero banners, the first product photo, and any image that a visitor sees without scrolling on a typical device.
How to identify images for lazy loading vs eager loading
Check the layout at a narrow mobile viewport as well as a desktop viewport. A responsive layout can move an image into or out of the first screen, and the element that qualifies as LCP can differ between the two. Identify the LCP candidate with a performance trace rather than assuming it is the largest file on the page.
Illustrative example: a product page has a main photo above the fold, three thumbnail variants beside it, and a related-products grid lower down. The main photo and the visible thumbnails stay eager. The related-products grid, which only appears after scrolling, is the candidate for lazy loading. This split is a worked example to show the reasoning, not a measured result from a specific site.
How to use the loading attribute correctly
The loading attribute is enumerated: lazy defers fetching, eager fetches immediately, and leaving it unset behaves like eager for images. It can be applied to img and iframe elements. Keep a usable src, meaningful alternative text, and width and height attributes that match the real aspect ratio so the browser can reserve space before the image arrives.
Illustrative example: on the related-products grid from above, each img tag keeps its width and height attributes and gets loading set to lazy. Scrolling through that grid on a slow connection should show images arriving progressively without blank gaps or a sudden layout jump, because the reserved dimensions hold the space even before the image loads.
| Image role | Recommended value | Why |
|---|---|---|
| Hero or LCP candidate | eager (default) | Needs to be discoverable and fetched immediately |
| Visible thumbnails above the fold | eager (default) | Part of the initial view, deferring adds risk with little benefit |
| Gallery or grid below the fold | lazy | Defers network work until the browser decides it is needed |
| Footer or rarely seen images | lazy | Lowest priority, safe to defer fully |
When should you use fetchpriority for critical images?
fetchpriority set to high is a hint you can add to the LCP image element to signal that the browser should prioritize its network request over other resources competing for bandwidth at the same time. It does not replace eager loading, and it does not guarantee a specific load time; it simply helps the browser order its work when several requests start close together.
Use it sparingly. Marking every image as high priority removes the signal's usefulness, since the browser can no longer tell which request actually matters most. Reserve it for the single image most likely to be the LCP element, and avoid combining it with preload tags for images that are not actually critical, since that creates competing work rather than solving a discovery problem.
How to test the impact of lazy loading on your LCP
Lazy loading off-screen images reduces bandwidth competition during the initial load, which can let the LCP image's request complete sooner because fewer requests are fighting for the same connection. That is a plausible mechanism, not a fixed percentage improvement, and the actual effect depends on network conditions, number of deferred images, and how the browser schedules requests.
To check the result, compare request start times and transferred bytes for the same viewport, network throttling, and cache state before and after the change. Confirm the LCP element itself has not shifted to a different image, and check layout stability separately, since reserved width and height attributes prevent shifting regardless of whether an image is lazy or eager. A smaller initial request queue does not change server response time for the HTML document, so do not expect lazy loading to move Time to First Byte. Use field data when it is available rather than treating one lab trace as a universal result, and re-check after any layout or template change, since a new image can silently become the LCP candidate.
Next step: open the page in a performance trace, confirm which image is actually the LCP candidate, keep that one eager, and add loading set to lazy only to images confirmed to sit below the first viewport on both mobile and desktop.