Lazy loading: when should images wait to load?
Lazy loading postpones downloading a resource until it is likely to be needed. For images, this often means loading content outside the visible screen later. It can reduce initial data transfer, but delaying the main immediately visible content can make the experience worse.
Also known as: deferred loading · image lazy loading
At a glance
- Lazy loading changes when a download starts, not the file size.
- Delaying the main visible image can worsen the loading experience.
- An image loaded later still needs reserved space and an appropriate text alternative.
On this page

What does lazy loading postpone?
An image near the bottom of a long guide may not be needed to read the opening screen. Downloading it later can reduce the number of resources competing for network capacity at the start. Some visitors may never reach that section.
This is different from image compression. Compression produces a smaller file; lazy loading postpones the request for it. Both techniques can be used together, but they solve different problems.
How does it work for images?
Modern browsers can support the loading="lazy" attribute on HTML images. The browser decides how near the viewport a resource should be before requesting it. The request does not necessarily wait until the first pixel becomes visible. 1
<img src="assembly-detail.webp" loading="lazy" width="1200" height="800" alt="The securing screw at the bottom of the stand">
This example is an illustration later in an article. Dimensions help establish the aspect ratio and reserve space, while alt text communicates the image's meaning. Neither replaces the other.
Which images should not automatically wait?
A visitor may immediately need the main image visible when the page opens. Applying lazy loading to that image can delay the content that matters most. The web.dev guidance specifically warns about delaying images in the initial viewport and images important to LCP. 1
Largest Contentful Paint measures when the largest relevant visible content element appears. 2 Applying the same rule to every image without considering its position and purpose is therefore unhelpful.
The main illustration can be a small, appropriately prepared resource loaded normally. Additional images toward the bottom can independently use lazy loading.
Example: a fictional hiking-equipment guide
A hiking shop writes a long guide to adjusting a backpack. An overview illustration appears at the start; eight detail photographs explain the straps later. The first image establishes the subject immediately. The others become useful as the reader reaches their respective sections.
The developer does not delay every image uniformly. The overview loads normally, while the detail photographs can use browser-level lazy loading. Space is reserved in advance so arriving images do not push a paragraph out from under the reader.
The shop also tests a slower connection to check that illustrations arrive in time during scrolling. The goal is to support the actual reading journey, not merely reduce one initial network figure.
Why does crawler access matter?
If essential content is only created after a click or another custom interaction, a crawler may not reach it. Google's mobile guidance warns against making primary content depend on user actions. 3
JavaScript SEO therefore distinguishes postponing an image request from hiding the entire explanation behind an interaction. Sensibly timing illustrations in an accessible article is different from a page whose content exists only after someone presses a button.
How should the result be checked?
Test the whole page: the opening screen, fast and slow scrolling, and different screen sizes. Look for blank areas and unexpected movement. Lazy loading and CLS can be assessed together.
The SEO outcome cannot be inferred from how many images carry a lazy attribute. A useful result means the opening content arrives promptly, later images arrive when needed, and the full explanation remains readable. Lazy loading is a means to that experience, not an independent quality target.