When and how should you lazy-load images? Exclude above-the-fold images first, then configure and verify

ProcrustesPR

Lazy loading is suitable for images outside the initial viewport when a page opens. Avoid lazy-loading above-the-fold hero images, images near the top of the page, and images that could become the Largest Contentful Paint (LCP) element. For standard images, add loading=”lazy” to the img element and let the browser handle loading. After implementation, verify that the images appear correctly and that Google can read the rendered content.

ProcrustesPRProcrustesPRHow Should a CMS Handle Images? From Upload Optimization to Descriptions and URL Management

Check image positions first—do not enable lazy loading for the entire page

Deferring downloads of offscreen images can reduce their competition for bandwidth with critical above-the-fold resources. According to web.dev, in some cases involving poor network connections, this may help LCP candidate content load and render sooner; it does not necessarily improve every page.

  • Above-the-fold hero images and images at the top of the page: do not lazy-load them.
  • Images later in an article and outside the initial viewport: these can be lazy-loaded.
  • Images whose positions may change with the layout: check them on different devices and viewport sizes first.

For example, the same article image may be below the fold on a phone but already visible in a taller desktop viewport or on a tablet in portrait orientation. You therefore cannot decide to lazy-load it on every device based solely on the mobile view.

Raising the priority cannot compensate for lazy-loading above-the-fold images

The browser needs to complete layout before it can determine an image’s position relative to the viewport. If an above-the-fold image is set to lazy-load, its request must wait until CSS has been downloaded, parsed, and applied, rather than starting the download when the browser discovers the image while scanning the HTML. This may delay its display.

Loading timing and network priority are separate concerns. The loading attribute does not change an image’s network priority. Even setting fetchpriority=”high” alongside it cannot eliminate the wait described above caused by loading=”lazy”.

Prefer built-in browser functionality for standard images

Major browsers support the loading attribute on img elements, so additional JavaScript is usually unnecessary. The following example is suitable for an article image confirmed to be outside the initial viewport:

<img src=”detail.jpg” alt=”Product details” loading=”lazy”>

The lazy setting does not necessarily wait until an image appears onscreen before downloading it. Instead, downloading begins when the image comes within a certain distance of the viewport. That distance varies with factors such as the browser and connection, so do not assume a fixed threshold. When using picture, add loading to its child img element, not to picture itself. For resources to which this attribute does not apply, such as CSS background images, consider a JavaScript solution.

Verify loading results to avoid making content invisible to search engines

Google Search does not interact with pages, so do not make scrolling events or clicks a prerequisite for loading images. You can use built-in browser functionality or IntersectionObserver to trigger loading based on whether an element is approaching or entering the visible area.

After implementation, use the URL Inspection tool in Search Console to examine the rendered HTML. Confirm that the relevant content has loaded and that image URLs appear in the src attributes of img elements. This checks whether loading has been implemented correctly; it does not guarantee that images will be indexed or that rankings will improve.

ProcrustesPRProcrustesPRHow should images of different sizes on the same website be named?

Image lazy loading: perspectives from across the web

Will images be lazy-loaded if the loading attribute is not set?

Omitting the attribute does not enable lazy loading by default. The default value of loading for images is eager, which means they load immediately, even when they are outside the initial viewport. If an image might be visible as soon as the page opens, keeping the default is more appropriate than indiscriminately adding lazy.

Is it safe to lazy-load all images except the first image on the page?

There is no guarantee. One article recommends that a CMS exclude the first image on a page, but this is only a simplified approach: other images may also be immediately visible in larger viewports or become LCP candidates. A more reliable approach is to check their actual positions across devices and layouts, rather than configuring lazy loading solely by image order.

Does saving resources through lazy loading mean there is no user experience trade-off?

There can still be a cost: users may have to wait for downloads and processing when they later need resources that have not yet loaded. Loading resources on demand can reduce network and processor usage during the initial load, but any subsequent wait depends on network and device capabilities. There is therefore a trade-off between saving resources initially and avoiding delays later.

ProcrustesPRHow many image variants should you prepare, and how should you manage them?

References

  1. Lazy load images and <iframe> elementsweb.dev — Discusses: Will images be lazy-loaded if the loading attribute is not set?; Is it safe to lazy-load all images except the first image on the page?
  2. 修正延遲載入的網站內容 | Google 搜尋中心  |  Documentation  |  Google for Developersdevelopers.google.com — Source used in the article above.
  3. Prefetching, prerendering, and service worker precachingweb.dev — Discusses: Does saving resources through lazy loading mean there is no user experience trade-off?
  4. Your CMS Is Still Failing SEO Basics – 11 Fixes To Demandwww.searchenginejournal.com · 2026-11-04T15:00:12+00:00 — Discusses: Is it safe to lazy-load all images except the first image on the page?

Related articles

How Should a CMS Handle Images? From Upload Optimization to Descriptions and URL ManagementHow should images of different sizes on the same website be named?How many image variants should you prepare, and how should you manage them?How do visual and short-form video trends in search results affect SEO?How can photography websites use SEO to increase visibility and attract clients?How can service and e-commerce websites improve search visibility? Start by distinguishing local needs from buying intentWhy optimize a website, and which tasks can be done for free?How can you use search results page features to attract traffic?
ProcrustesPR
ProcrustesPR