IT Glossary
What is lazy loading (deferred loading)?
Lazy loading is the technique by which images and other heavy page elements load only once the visitor scrolls near them, instead of all at once when the page opens.
- 6
- sections
- 6
- questions answered
Lazy loading (also called deferred or "lazy" loading) is the technique by which a browser downloads images, iframes and other heavy page resources only when they get close to the visible part of the screen, instead of all at once on open, so the first render arrives sooner. It has a common trap: according to the Web Almanac 2025 (HTTP Archive), about 16% of pages lazy-load their LCP image, the main image of the first screen, which delays exactly the content Google measures as LCP.
On an image-heavy site — an online shop with long product listings, a photography portfolio, a richly illustrated blog — the difference shows immediately: out of a page weighing several megabytes, the first render pulls down a fraction. The commercial reason to care is that mobile visitors on variable connections do not wait; a page that stalls in its first seconds loses the customer before it has said anything persuasive, and Google measures precisely that behavior through Core Web Vitals, which feed into how the page ranks. Applied correctly it is among the cheapest optimizations with a measurable effect on perceived speed. Applied carelessly — on the hero image, or through ancient scripts — it slows down exactly the metric it was meant to improve, which is why implementation deserves the same short verification pass as any other change.
Why it matters for your business
A radically faster first paint
The page becomes usable after downloading a fraction of its content — the visitor can interact within seconds instead of waiting on dozens of images.
Mobile data saved
Visitors who never scroll to the bottom no longer download the images sitting there — friendlier to weak connections and to your own bandwidth bill.
Free bandwidth for the main image
With fewer images competing for the connection, the main image downloads faster and LCP can improve, but only if the first-screen image is not itself lazy-loaded.
How it works: the loading=lazy attribute
In HTML, the loading attribute goes on img and iframe elements. The value lazy defers the download until the element nears the screen; eager, the default, loads it immediately. The browser picks the distance: in Chrome, currently, an image starts downloading about 1,250 px before it reaches the screen on a fast connection and about 2,500 px on 3G or slower (web.dev). Deferral works only with JavaScript enabled, as an anti-tracking measure (MDN).
The attribute does not work for CSS background images. For those, use JavaScript with the IntersectionObserver API. Either way, set width and height on the image: the browser reserves the space up front and the page does not jump when the image appears (the CLS metric).
What not to lazy-load: the LCP image and the first screen
The rule from web.dev is to load any image visible in the first screen immediately, and Google Search Central says the same: do not lazy-load content that is likely to be visible straight away. The LCP image needs every millisecond, and deferring it defeats the purpose. Nor does fetchpriority=high cancel loading=lazy: an image with both is still delayed. The Web Almanac 2025 shows that on mobile 10.4% of pages put native loading=lazy on the LCP image and 5.9% do it through data-src scripts.
WordPress applies loading=lazy to images by default since version 5.5. From 5.9 it omits the attribute for images it judges to be in the first screen, and from 6.3 it adds fetchpriority=high to the probable LCP image (make.wordpress.org). Practical check: in PageSpeed Insights, the LCP element must not carry loading=lazy.
Want an estimate for your project?
Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.
Lazy loading and SEO: what Googlebot sees
Google Search does not scroll or click. Lazy-loaded content appears in search only if it loads when it enters the viewport. The methods Google names are native lazy loading for images and iframes, the IntersectionObserver API, and libraries that load on viewport entry. Content that waits for a scroll or a click stays hidden from Googlebot. With infinite scroll, each chunk of content needs its own stable URL, for example with ?page=12.
The test: in Search Console, inspect the URL, open the rendered HTML and look for the image addresses in the src attribute. If they are missing, Google does not see the images. Google states no ranking boost from lazy loading; it asks only that it not hide content.
Lazy loading vs eager loading in code
The term has a programming sense too. The Lazy Load pattern, described by Martin Fowler, is an object that does not hold all its data but knows how to get it. In ORMs, related records are read from the database only on first access. The risk is the N+1 problem: one query for the list and another for each item. Eager loading fetches everything in a single query.
In front-end work the same principle is called code splitting: React.lazy with the dynamic import() loads a component's code only when it first renders (react.dev). Single-page applications use this technique often.
Frequently asked questions
Which parts of a site can be lazy loaded?
Images and iframes below the first screen, through the loading=lazy attribute: YouTube or Vimeo videos, embedded maps, social widgets and comment sections. CSS background images need a JavaScript solution. Modern browsers support the attribute natively, with no extra scripts required.
Can lazy loading actually harm a site?
Yes, in two classic situations. Applied to the main image in the first screen it delays that image and worsens the LCP metric. Implemented through old scripts, it can hide images from search crawlers. The rule is that the first screen loads immediately and everything else lazily, confirmed after release with URL inspection in Search Console (rendered HTML).
How do I check whether my site already uses lazy loading?
Open the page with your browser developer tools on the Network tab and scroll slowly: if images appear in the list as you descend, lazy loading is working. You can also search the source code for loading=lazy. In PageSpeed Insights, check the LCP diagnostics to confirm the main image does not carry loading=lazy.
What does lazy loading mean?
Lazy loading means deferred loading: a resource downloads only when it is needed, usually when it gets near the screen. The opposite is eager loading, which loads immediately and is the browser default for any image without the loading=lazy attribute.
Does lazy loading affect SEO?
Neutral to positive when content loads on viewport entry, natively or with IntersectionObserver. It harms when content waits for a scroll or click, which Googlebot does not perform. Check with URL inspection in Search Console: the images must appear in the rendered HTML.
Do I need a lazy loading plugin in WordPress?
Usually not: WordPress adds loading=lazy by default since version 5.5 and omits it for first-screen images from 5.9 and 6.3. A plugin only helps for CSS backgrounds or iframes it does not cover. Two lazy-loading layers, in the theme and in a plugin, can conflict.
Let’s talk about your project
Book a free 30-minute call or send us an email. We reply the same working day.
office@northdan.com · +40 750 252 851