SilverGecko
ToolsBlogPricingDocs
  1. Home
  2. /Glossary
  3. /Lazy loading
Performancebeginner

Lazy loading

Deferring the loading of off-screen content until it's needed.

What is Lazy loading?

Lazy loading is a technique that defers loading of non-critical resources until they're needed. For images and iframes, this means waiting until they're about to scroll into view. For JavaScript, it means code-splitting and loading modules on demand.

Native lazy loading is supported via the loading='lazy' attribute for images and iframes. More complex lazy loading can be implemented with Intersection Observer API.

Why Lazy loading matters

Lazy loading reduces initial page weight and speeds up perceived load time. Users don't need to download images they'll never scroll to. It saves bandwidth and improves performance, especially on image-heavy pages.

How to implement

1

Add loading='lazy' to below-fold images

2

Don't lazy load above-fold/LCP images

3

Use native lazy loading for browser support

4

Consider JS-based solution for more control

5

Set proper image dimensions to prevent CLS

6

Preload critical images instead

Code example

<!-- Native lazy loading for images -->
<img
  src="below-fold-image.jpg"
  alt="Description"
  loading="lazy"
  width="800"
  height="600"
>

<!-- LCP image - don't lazy load, preload instead -->
<link rel="preload" as="image" href="hero.jpg">
<img src="hero.jpg" alt="Hero" fetchpriority="high">

Common mistakes to avoid

  • Lazy loading above-fold images
  • Lazy loading the LCP element
  • No width/height causing layout shift
  • Lazy loading all images regardless of position

Examples

Native: loading='lazy' on img tag

Intersection Observer for precise control

React: Dynamic imports for code splitting

Frequently asked questions

No, never lazy load above-fold images, especially the LCP element. Only lazy load images below the initial viewport that users may not scroll to.

Search engines can see lazy-loaded images as long as they load without user interaction. Native lazy loading is fully supported by Googlebot.

Related terms

Image optimizationLCP (Largest Contentful Paint)CLS (Cumulative Layout Shift)Page speed

SilverGecko tools for Lazy loading

Core Web Vitals

Analyze page performance with Google's Core Web Vitals. LCP, INP, CLS metrics with optimization recommendations.

SEO Auditor

Comprehensive SEO audit with 40+ checks. Covers technical SEO, content quality, E-E-A-T signals, and AI visibility.

SilverGecko

Free SEO tools optimized for Google rankings and AI search visibility.

Free tools

  • SEO auditor
  • SERP preview
  • Schema generator
  • Meta generator
  • E-E-A-T analyzer
  • Fluff detector
  • Heading analyzer
  • OG debugger
  • Robots.txt
  • Core Web Vitals
  • Content freshness
  • Citation sources
  • LLM visibility

AI tools

  • Compete (market view)
  • pSEO strategy
  • All tools

Resources

  • Blog
  • Documentation
  • SEO glossary
  • Compare
  • Guides
  • Industries
  • Pricing
  • Contact

Gecko family

  • GoldenGecko

Legal

  • Privacy
  • Terms

© 2026 SilverGecko. All rights reserved.

[email protected]