SEO & GEO
What is lazy loading? How it works, benefits and pitfalls
Copy for AI
Lazy loading defers images, videos and iframes until they’re about to scroll into view.
Instead of downloading everything at once, the browser first fetches what the visitor sees. The rest follows later, so the page becomes visible and usable faster.
The verdict: lazy loading is one attribute and a quick win, as long as you never apply it to the image at the top of your page.
What is lazy loading exactly?
It’s a loading order: visible content first, everything further down only when the visitor scrolls towards it.
Why the default order is wasteful
The average web page is full of imagery. Without lazy loading, the browser tries to download all of it in one go.
That includes the photos at the very bottom, which most visitors never reach. It costs bandwidth and time, and it slows down the top of your page, where the first impression is made.
What lazy loading changes
Lazy loading flips that order around.
The browser loads what’s visible (the part “above the fold”) and defers the rest until the visitor scrolls. You need less data up front, so the page shows sooner.
It’s one part of technical SEO. But the real goal isn’t to please Google: it’s that visitors stay.
How does lazy loading work technically?
There are two ways to switch it on: one HTML attribute, or a script.
1. Natively, with the loading attribute
You add loading="lazy" to an <img> or <iframe>. The browser handles the rest, without extra code.
MDN says the attribute defers loading “when elements are off-screen until the user scrolls near them”. It also works on <video> and <audio>.
Here’s what that looks like:
<img src="client-logos.webp" loading="lazy" width="1200" height="400" alt="Client logos">
2. With JavaScript
For background images, such as a full-width banner set in CSS, you use the Intersection Observer API or an off-the-shelf library.
More work, but more control.
Native vs JavaScript: which do you pick?
Both solve the same problem, but they suit different situations:
Native (loading="lazy") | JavaScript (Intersection Observer) | |
|---|---|---|
| What you need | One attribute on <img> or <iframe> | An extra script or library |
| Works for | Regular images and iframes | Background images, videos, complex cases |
| Maintenance | Virtually zero, the browser handles it | More code to manage |
| Control | Limited, the browser decides | Full, you set the threshold |
| Recommended for | Most B2B sites | Image-heavy or custom pages |
In practice, most B2B sites do just fine with the native variant.
Start there, and only move to JavaScript for a case the attribute doesn’t cover.
How far ahead does the browser load?
“Lazy” doesn’t mean “at the last second”. Chrome starts fetching an image while it’s still a set distance below the viewport.
Google’s web.dev team lowered those thresholds to load less data up front. On fast connections they went from 3,000 to 1,250 pixels, on slower ones from 4,000 to 2,500:
The same article reports that 97.5% of lazy-loaded images on 4G were fully loaded within 10 ms of becoming visible. On slow 2G it was still 92.6%.
So visitors rarely see an empty box.
Which browsers support it?
All major browsers do, and browsers without support simply ignore the attribute. Per web.dev:
| Browser | Images from version | Iframes from version |
|---|---|---|
| Chrome | 77 | 77 |
| Edge | 79 | 79 |
| Firefox | 75 | 121 |
| Safari | 15.4 | 16.4 |
Why is lazy loading good for speed?
Because the browser downloads less before the page appears, and in B2B that speed is a revenue factor.
A slow page drives visitors away before they see your offer or your form. Lazy loading helps on three fronts:
- Faster first render: less data up front, so the page is usable sooner.
- Less wasted bandwidth: imagery nobody looks at isn’t downloaded.
- Better mobile experience: on slow connections, every saved kilobyte counts.
Combine it with lighter files. Read how to optimise images for SEO and how to make a slow site faster.
An example from practice
Picture a B2B reference page with 20 client logos, a few screenshots and an embedded video at the bottom.
Without lazy loading, the browser pulls all of that in the moment the page opens. That includes the video most visitors never play.
Set everything below the fold to loading="lazy", and the browser first fetches the heading and the first logos. The rest only loads when the visitor scrolls.
Result: the page is usable sooner, and the video only costs data if someone reaches it.
Heavy, image-rich pages like this are where the technique makes the difference.
What’s the biggest lazy loading pitfall?
Lazy loading your most important image: the large hero at the top of the page.
That image is often the element that sets your LCP score. Largest Contentful Paint measures how fast your largest visible element appears.
web.dev is blunt about it: “Use loading=lazy only for images outside the initial viewport.”
Find your LCP element first
PageSpeed Insights tells you which element is your LCP. Here it is for one of our own articles:
PageSpeed Insights for our own largest contentful paint article, October 2026. The LCP element is the H1, a text element.
On that page the LCP is text, so no image is at risk. On a page with a hero photo, that photo would be the LCP element, and it must load normally.
The rule
Only set imagery that isn’t immediately visible to loading="lazy".
Your hero image and everything above the fold load normally, or explicitly with loading="eager".
Which other lazy loading mistakes should you avoid?
Four recurring misses undermine the effect:
- No
widthandheight: the page jumps while loading. - Treating it as a silver bullet: deferring doesn’t make files lighter.
- Deferring tiny icons: it adds complexity for no gain.
- Trusting without testing: measure after you switch it on.
Missing width and height
Without fixed dimensions, the browser doesn’t know how much space a deferred image takes. So the page jumps when it arrives.
That costs you on CLS, another one of the Core Web Vitals. web.dev recommends “adding width and height attributes to all <img> tags”.
Layout shift is easy to underestimate. Search Console’s Core Web Vitals report for our own site shows it:
The Core Web Vitals report in our own Search Console, October 2026. Layout shift above 0.1 keeps 349 mobile URLs out of the green.
That proves one weak metric is enough to fail the assessment, whatever your LCP does.
No silver bullet, no tiny icons
For example, a photo of several megabytes stays heavy, even if it loads later. Always combine lazy loading with compression.
For small icons, such as a 2 KB arrow, lazy loading delivers nothing. Save it for heavier imagery further down.
Test after switching it on
Check with Google Lighthouse whether your LCP score actually improved.
It shouldn’t have quietly got worse.
When does lazy loading matter for B2B?
On heavy, image-rich pages; on a lean site it’s low-hanging fruit that may already be on.
Lean B2B sites
Little imagery and fast hosting? Then your CMS may already lazy load by default.
Shift your attention to content, authority and conversion, because that’s where the revenue is.
Heavy pages
Lazy loading pays off on extensive case studies, product overviews and long landing pages.
Steer on customers and revenue, not on a perfect speed score for its own sake.
Frequently asked questions about lazy loading
Is lazy loading good for SEO?
Indirectly, yes. It makes your page faster, and speed is part of the Core Web Vitals and page experience. More importantly, it keeps visitors around, and that generates leads.
Do I have to program lazy loading myself?
Usually not. The native loading="lazy" attribute works without extra code, and many CMSes switch it on by default. You only need JavaScript for background images or special cases.
Which images should I not lazy load?
Everything that’s immediately in view, especially your hero image at the top. Lazy loading that one slows down your LCP score.
Does lazy loading work in all browsers?
Yes, all modern browsers support the native attribute for images. Iframe support came later (Firefox 121, Safari 16.4), and older browsers simply ignore the attribute and load everything as usual.
Ready to make your site faster?
Tell us where your site is stuck on speed, and we’ll tell you what does and doesn’t pay off in your situation.
You get concrete steps, not a report that gathers dust. Contact us.
Free website scan
Enter your website and get an automatic scan within minutes, with concrete technical and SEO improvements. No sales pitch.
We only use your details for your scan. No spam, unsubscribe anytime.