Lazy loading means holding back pictures, videos and embedded frames further down a page until the visitor scrolls near them, so the top of the page arrives first and less data is used. In HTML it is one attribute: loading="lazy". Used well, it makes long pages faster. Used on the wrong picture, the main one at the top, it makes them slower.
What is lazy loading? #
MDN describes it as a way to mark resources as non-blocking, or non-critical, and load them only when needed. MDN says it shortens the critical rendering path, which means shorter page load times. The opposite is eager loading: everything is fetched at once, whether the visitor ever sees it or not.
Why does it matter? #
A long product or article page can carry dozens of pictures; loading all of them at once slows down what the visitor sees first. MDN notes that median resource weight grew from about 100 KB to about 400 KB on desktop between 2011 and 2019, and from about 50 KB to about 350 KB on mobile. Lazy loading spends that data only on what people reach. See page speed and why your website is slow.
How does it work? #
The browser’s built-in way needs no script. MDN shows the loading attribute on images and frames:
<img loading="lazy" src="image.jpg" alt="..." />
<iframe loading="lazy" src="video-player.html" title="..."></iframe>
MDN’s image reference gives two values. eager loads the image straight away, wherever it is; it is the default. lazy waits until the image reaches a distance from the screen that the browser decides. web.dev says Chrome uses 1,250 pixels on fast connections and 2,500 pixels on slower ones, since July 2020, and that these values cannot be changed. Older sites use a script with the Intersection Observer API instead.
Which browsers support it? #
| Browser | Images from | Iframes from |
|---|---|---|
| Chrome | 77 | 77 |
| Edge | 79 | 79 |
| Firefox | 75 | 121 |
| Safari | 15.4 | 16.4 |
Figures from web.dev, checked 24 November 2026. A browser that does not know the attribute simply loads the picture normally.
Why does it matter for search? #
Speed is part of Core Web Vitals, and the top picture is often the Largest Contentful Paint (LCP) element. web.dev puts it firmly: never lazy-load your LCP image, as that will always add an unnecessary delay. Search engines also need to find what you hold back. Google says lazy content should load whenever it is visible in the viewport, using the browser’s built-in lazy loading or Intersection Observer, and should not rely on user actions such as scrolling or clicking. See JavaScript SEO and image SEO.
Why does it matter for AI answers? #
An AI crawler reads your HTML. If a picture’s real address sits in the src, with good alt text, the bot can see it is there, lazy or not. If a script only swaps the real address in after the visitor scrolls, a bot that does not run scripts may see only a placeholder. Google asks you to check that image URLs show up in src attributes. The browser’s own loading="lazy" keeps the real address in the HTML, which is the safer choice for every search crawler and AI bot.
A worked example: a bakery’s cake gallery #
| Element | Lazy? | Why |
|---|---|---|
| Logo in the header | No | Always in view |
| Main photo at the top | No, and add fetchpriority="high" |
It is in the first screen and is likely the LCP element |
| The 30 gallery photos below | Yes, each with width and height | Most visitors see only some of them |
| Embedded map in the footer | Yes | It is heavy and far down the page |
web.dev suggests fetchpriority="high" on the likely LCP image, and warns that setting high priority on more than one or two images makes it unhelpful. The top of the page then looks like this:
<img src="cake-hero.webp" width="1200" height="800" fetchpriority="high" alt="Three-tier lemon wedding cake">
<img src="cake-02.webp" width="600" height="400" loading="lazy" alt="Chocolate birthday cake with candles">
Lazy loading and layout shift #
web.dev recommends width and height on every <img>. Without them, a lazy picture that arrives late pushes the text down and can raise Cumulative Layout Shift (CLS). The size lets the browser hold the space before the file arrives. Smaller files help too: see WebP and AVIF.
What about long lists and infinite scroll? #
Lazy loading whole blocks of content is a different job. For infinite scroll, Google asks that each chunk has its own persistent, unique URL, so it can be found and linked. See pagination. Videos follow the same rules; see video SEO.
What lazy loading does not fix #
It only delays files lower down the page. It does nothing for a slow server: see Time to First Byte. It does not make heavy scripts lighter, which is what slows Interaction to Next Paint (INP). And it cannot speed up the main picture, which must load eagerly. Fix those first, then lazy-load the rest.
Lazy loading on an online shop #
Shops are where it helps most. A category page with 40 product thumbnails, a reviews widget and a “you may also like” row can hold back everything below the first row. Keep the first row eager, so the landing page looks complete at once. Give each thumbnail its width and height, and keep the real image address in the HTML so product pictures can still be found. See ecommerce SEO.
Common mistakes #
- A theme or plugin that adds
loading="lazy"to every picture, including the top one. web.dev says settingloading="eager"by hand can help when your tooling adds lazy automatically. - Lazy-loading the logo or header pictures, which are always in view.
- Lazy pictures with no width and height, which shift the page.
- Script-only lazy loading that hides the real image address from bots.
- Testing only on a fast desktop connection, where the delay is hard to notice. Check on a phone too. See mobile SEO.
How to check it #
- Open the page, right-click and choose View page source. Search for
loading="lazy"on<img>and<iframe>tags. - Check the pictures in the first screen do not carry
loading="lazy"; the ones further down should. The Image SEO Checker checks alt text, formats and sizes. - In Chrome DevTools, open the Network panel, reload, and scroll. Lazy pictures should load as you scroll, not at the start.
- Check what a bot that does not run scripts sees. Run the JavaScript SEO Checker and the AI Readiness Checker.
- In Google Search Console, use URL Inspection. Google says to confirm your content appears in the rendered HTML and image URLs show in
src. - Compare Largest Contentful Paint before and after a change in the Core Web Vitals report in Search Console. Our Page Speed Checker and Core Web Vitals Checker are coming soon; the Core Web Vitals Calculator rates figures you already have.
- Make pictures lighter with the Image Compressor or the Image Converter, both on your own device.
- Check that pictures are served with sensible cache headers using the HTTP Header Checker, and that none of their links are broken with the Broken Link Checker. See edge cache and CDN.
- Score a whole page with the SEO Checker, and set your site beside a rival’s with Compare Two Websites.
- Over time, the image SEO audit, JavaScript rendering check, real-user speed, page speed monitor and what AI reads are in URSY Pro, opening in stages. See technical SEO and SEO audit.
What URSY.com counts #
We count requests: every page, file and image the website answers, from the edge log and from the website itself. A lazy picture that nobody scrolls to is never asked for, so it never becomes a request. A bot reading the same file 10 times counts as 10 requests. A page view is counted only when a person’s browser runs our cookie-free counter, so bots never make page views. The rules are on our methodology page. See server logs.
Questions #
Is lazy loading good for SEO? #
Yes, for pictures below the first screen. It can hurt if it delays the main picture or hides image addresses from crawlers.
Should I lazy-load the first image? #
No. web.dev says never lazy-load your LCP image. Give it fetchpriority="high" instead.
Does lazy loading work without JavaScript? #
MDN says loading is only deferred when JavaScript is enabled, as an anti-tracking measure. With scripts off, the pictures simply load normally.
Does WordPress add lazy loading by itself? #
Some setups add it automatically, which is why web.dev mentions tooling that adds lazy by itself. Check the top picture in your page source. See WordPress SEO.
Can I lazy-load iframes and videos? #
Yes. MDN shows loading="lazy" on <iframe> and <video> too. Embedded maps and video players far down a page are good candidates.
Related words #
- Largest Contentful Paint (LCP)
- Why your website is slow: the usual causes and fixes
- WebP and AVIF
- Cumulative Layout Shift (CLS)
- Core Web Vitals
- Image SEO
- JavaScript SEO
- Page speed
Sources #
- MDN Web Docs: Lazy loading (last modified 17 November 2026), checked 24 November 2026
- MDN Web Docs: The Image Embed element (last modified 19 November 2026), checked 24 November 2026
- web.dev: Optimize Largest Contentful Paint (last updated 31 March 2025), checked 24 November 2026
- web.dev: Browser-level image lazy loading for the web, checked 24 November 2026
- Google Search Central: Fix lazy-loaded content, checked 24 November 2026
Updated 24 November 2026 by URSY.com.
Cite this page: Lazy loading. URSY. Updated 26 November 2026. https://ursy.com/wiki/lazy-loading/ · Section links
Tools for this
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →