🖼️
SEO & marketing

Lazy Loading and SEO: Making Sure Your Images Get Indexed

05.12.2026
← All articles

Lazy loading delays images until the visitor scrolls near them, instead of loading everything when the page opens. On image-heavy pages such as product catalogues or galleries, it noticeably lightens the initial load. Configured badly, however, it can hide images from search engines or delay the most important image on the page and hurt your speed metrics.

How Googlebot sees images

Googlebot renders pages with a modern Chrome-based engine and runs JavaScript, but it does not scroll like a person, click buttons or hover. If an image only loads on a scroll event or after a click, the bot may never see it. Google's own guidance is to trigger lazy loading when content enters the viewport, without depending on user actions. Google Images mainly indexes images referenced in the src or srcset of an <img> tag; CSS background images are generally not indexed as images, so product photos belong in real <img> elements.

The safest option: native lazy loading

Modern browsers support loading="lazy". It needs no library, and the real URL stays in src, readable straight from the HTML. Always add width and height so the browser can reserve space; otherwise text jumps when the image arrives, which hurts CLS.

<!-- Main above-the-fold image: no lazy loading -->
<img src="/img/banner-chegirma.webp" alt="Autumn sale banner"
     width="1600" height="600" fetchpriority="high">

<!-- Catalogue images further down -->
<img src="/img/yashil-choy.webp" alt="Green tea"
     width="400" height="400" loading="lazy">

Never lazy-load the first-screen image

The most common mistake is putting loading="lazy" on every image, including the hero banner or main product photo. That image is usually the page's LCP element, so delaying it worsens Largest Contentful Paint and your Core Web Vitals. Give it high priority instead. Recent WordPress versions add lazy loading automatically and try to skip the first images, but themes and page builders can override this, so verify in the browser.

Be careful with JavaScript libraries

Older scripts hide the real URL in data-src and put a transparent placeholder in src. If they wait for scrolling, Googlebot never sees the real image. If you must use JavaScript, pick an IntersectionObserver-based approach and add a noscript fallback.

<img class="lazy" data-src="/img/kofe-arabica.webp" alt="Arabica beans"
     width="400" height="400">
<script>
const io = new IntersectionObserver((entries) => {
  entries.forEach((e) => {
    if (e.isIntersecting) {
      e.target.src = e.target.dataset.src;
      io.unobserve(e.target);
    }
  });
});
document.querySelectorAll('img.lazy').forEach((img) => io.observe(img));
</script>

Example: a tea and coffee shop

A Tashkent tea and coffee shop on misol.uz shows 60 product photos per category page. A plugin that loaded images via data-src on scroll made the page faster, but a few weeks later image search traffic in Search Console dropped sharply. After replacing the plugin with native loading="lazy" and removing lazy loading from the first row of four images, speed stayed good and the images returned to the index.

How to verify

In Google Search Console, run the URL Inspection tool, test the live URL and view the rendered HTML: real image URLs must appear in src. PageSpeed Insights or Lighthouse will warn if the LCP image was lazily loaded. A quick terminal check:

curl -s https://misol.uz/choy/ | grep -o '<img[^>]*>' | head -n 10

Remember that lazy loading does not make images lighter. Convert them to WebP or AVIF, size them for their display dimensions and serve smaller versions via srcset. Server-side caching and compression, for example on sayt.uz hosting through ISPmanager, speed up the rest of the page.

Related articles

🛒 Google Merchant Center: Getting Products into Free Listings ⚠️ The Risks of Buying Backlinks: When a Cheap Link Gets Expensive 🤖 AI-Written Content: Google's Rules and How to Use AI Safely 🎓 Course Schema Markup for Online Courses: A Practical Guide
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓