Defer offscreen images

Choose which images can wait until scrolling, protect the first viewport, and test loading on a slow connection.

A long service page can contain a gallery, staff photos and related articles that visitors never reach. Loading every image immediately spends bandwidth before the first screen is useful. This guide covers moving genuinely later content out of that initial competition without delaying the image a visitor came to see.

The older offscreen-images audit was removed in Lighthouse 13. An older saved Sitepulse result may still link here. The practical decision remains relevant, even when a newer report does not show that particular finding.

Identify images outside the initial view

Open the tested page at the same viewport size and inspect the image requests during a fresh load. Distinguish a gallery far down the page from a large first-screen image that merely appears late. A slow, visible image needs earlier discovery or better delivery, not more deferral.

Change the template that owns the images

For ordinary below-the-fold images, native lazy loading is a useful starting point. Give the browser intrinsic dimensions so it can reserve the correct space before downloading. This avoids a page that jumps as a gallery fills in.

<img src="/images/team-workshop-800.webp"
     alt="The project team at a workshop"
     width="800" height="600"
     loading="lazy" decoding="async">

Apply this in the shared gallery or card template rather than patching individual generated pages. Check for an existing plugin or image component that already controls loading; competing lazy-loading mechanisms can leave a placeholder with no working request.

Keep the first screen available

Exclude the main product image, banner or other likely Largest Contentful Paint element from a blanket lazy rule. Also inspect hidden carousels: an offscreen slide is different from the currently visible slide. Prioritise what the visitor sees rather than treating every image in the same component identically.

Test a slow scroll and a return visit

After deployment, reload with caching disabled, then scroll gradually. Images should arrive before the visitor needs them and retain their intended aspect ratio. Repeat with JavaScript unavailable if a custom loader is involved, and check that browser back navigation does not strand placeholders.

Compare initial image transfers and visible rendering, not just whether the old audit disappeared. Browser loading heuristics vary, and delaying far-away images may reduce bandwidth without materially changing a Lighthouse score. If the remaining assets are too large, continue with image sizing and format selection.

Technical references