Lazy Loading
A performance technique that defers the loading of non-critical resources (images, videos, iframes) until they are needed, typically when they approach the visible viewport. Lazy loading reduces initial page weight and improves loading performance.
Lazy loading prevents the browser from downloading resources that users may never see, significantly reducing initial page weight and improving Core Web Vitals. Instead of loading all 50 images on a long page at once, lazy loading downloads only the images currently visible and loads additional images as the user scrolls toward them.
For engineering teams, native lazy loading (loading="lazy" attribute) is the simplest implementation and is supported by all modern browsers. Do not lazy-load above-the-fold content, especially your LCP element, as this delays the most important metric. Use eager loading for the first visible images and lazy loading for everything below the fold. For JavaScript frameworks, libraries like react-lazy-load and the native IntersectionObserver API provide more control. Consider adding a loading="lazy" attribute to all images and iframes by default in your CMS or component library. Monitor the impact of lazy loading on Core Web Vitals, as incorrect implementation can worsen CLS if placeholder dimensions are not properly set.
Related Terms
Core Web Vitals
A set of three Google-defined metrics that measure real-world user experience for loading performance, interactivity, and visual stability. Core Web Vitals are a confirmed ranking factor in Google Search.
Largest Contentful Paint (LCP)
A Core Web Vital that measures the time from page load start until the largest visible content element (image, video, or text block) is rendered on screen. Good LCP is 2.5 seconds or less.
Interaction to Next Paint (INP)
A Core Web Vital that measures the latency of all user interactions (clicks, taps, keyboard input) throughout the page lifecycle, reporting the worst interaction. Good INP is 200 milliseconds or less.
Cumulative Layout Shift (CLS)
A Core Web Vital that measures the total amount of unexpected layout shifts that occur during a page's entire lifespan. Good CLS is 0.1 or less, where layout shifts are calculated from the impact and distance of moving elements.
Time to First Byte (TTFB)
The duration from the user's request to the first byte of the server response reaching the browser. TTFB measures server-side processing speed and network latency, directly impacting all subsequent loading metrics.
Crawl Budget
The number of pages a search engine bot will crawl on your site within a given timeframe, determined by crawl rate limit and crawl demand. Crawl budget optimization ensures important pages are discovered and indexed efficiently.