Why Chrome DevTools Full Page Screenshots Miss Lazy Loaded Images
Chrome DevTools’ full-page screenshot command captures only the content that is currently rendered in the viewport plus what it can paint after a quick scroll, so images that use lazy loading (loading=”lazy” or IntersectionObserver) are not fetched and therefore appear as blank or placeholder boxes. This happens because the screenshot tool simulates a single fast resize of the viewport rather than actually scrolling through the page, which means lazy-loaded images never enter the viewport and never trigger their network requests. Below, we explain exactly why this occurs, how lazy loading works, and the reliable workarounds to capture a complete full-page screenshot.
How Lazy Loading Works in Modern Browsers
Lazy loading is a performance technique that defers the loading of off-screen images until the user scrolls near them. The two most common implementations are:
- Native lazy loading: The HTML attribute
loading="lazy"tells Chrome to delay fetching the image until it is about to enter the viewport (typically a few hundred pixels before). - JavaScript-based lazy loading: Libraries or custom code use
IntersectionObserverto watch when an image element approaches the viewport, then dynamically set thesrcorsrcsetattribute.
In both cases, the browser intentionally avoids downloading images that the user hasn’t seen yet. This saves bandwidth and speeds up initial page load, especially on image-heavy sites. However, it also means that any automated tool that tries to capture the entire page without simulating real scrolling will miss those images.
What Full-Page Screenshot Actually Does in DevTools
When you click the full-page screenshot icon (or press Ctrl+Shift+P and type “Capture full size screenshot”), Chrome DevTools does not scroll through the page. Instead, it temporarily resizes the viewport to the full height of the document (as reported by document.body.scrollHeight) and then captures the rendered output. The key detail is that this resize happens in a single step—the browser does not fire the intermediate scroll events that would normally trigger lazy loading.
Because the viewport is instantly enlarged to cover the entire page, every image is technically “in the viewport” from a layout perspective. But the browser’s lazy-loading logic checks the distance to the viewport at the moment the image is first considered for rendering. Since the resize is instantaneous, the images that were originally below the fold never get a chance to trigger their network requests. The result is that those areas of the screenshot show the placeholder background, an empty box, or a gray rectangle where the image should be.
Why the Browser Doesn’t Just Fetch Everything
One might ask: why doesn’t the browser simply fetch all images when the viewport is enlarged? The answer lies in the design of lazy loading. The browser’s loading algorithm is based on the image’s position relative to the current viewport at the time the page is parsed and when the image is inserted into the DOM. When the viewport is resized programmatically, the browser does not re-evaluate all existing images to see if they now fall within the new viewport—that would defeat the purpose of lazy loading and cause a performance spike. Instead, lazy loading is triggered by scroll events or by the IntersectionObserver firing as the element crosses a threshold. A single viewport resize does not generate those events.
Additionally, Chrome DevTools’ full-page screenshot is designed to be a quick, low-overhead tool for developers who want a rough visual of the entire page. It is not intended to be a pixel-perfect archive of every resource. For that, you need a headless browser or a dedicated screenshot service that actually scrolls and waits for images to load.
Common Workarounds That Actually Work
If you need a full-page screenshot that includes lazy-loaded images, you have several practical options:
- Disable lazy loading in DevTools: Open DevTools, go to the Network tab, and check the “Disable cache” box (though this alone doesn’t help). A better trick is to use the command menu (Ctrl+Shift+P) and type “Disable JavaScript”—this prevents most JS-based lazy loaders from running, but native
loading="lazy"still works. To disable native lazy loading, you can use the Rendering tab and enable “Disable image lazy loading” (available in Chrome 85+). This forces all images to load immediately, and then the full-page screenshot will capture them. - Scroll manually before capturing: If you only need a few screenshots, scroll through the page slowly to trigger lazy loading, wait for images to appear, then use the regular screenshot (Ctrl+Shift+S) to capture the visible area. This is tedious but works.
- Use the built-in “Capture full size screenshot” after disabling lazy loading: Combine the Rendering tab setting with the full-page capture—this is the simplest in-browser solution.
- Use a headless browser script: Tools like Puppeteer or Playwright can scroll the page incrementally, wait for network requests to settle, and then take a full-page screenshot. This is the most reliable method for automated workflows.
- Use a third-party extension: Some Chrome extensions (e.g., GoFullPage) implement their own scrolling logic and wait for images to load before capturing. They often handle lazy loading better than DevTools.
How to Temporarily Disable Lazy Loading in Chrome
For a quick one-off screenshot, the fastest method is to use the Rendering tab in DevTools:
- Open DevTools (F12).
- Press Ctrl+Shift+P (Cmd+Shift+P on Mac) to open the command menu.
- Type “Rendering” and select “Show Rendering”.
- In the Rendering tab, check the box for “Disable image lazy loading”.
- Now use the full-page screenshot command.
This setting forces Chrome to load all images immediately, regardless of the loading attribute. After capturing, uncheck the box to restore normal behavior. Note that this does not disable JS-based lazy loaders that use IntersectionObserver—for those, you may also need to disable JavaScript entirely (which will break many sites) or use a script that scrolls.
Why Some Images Still Load Even Without Scrolling
You might notice that some lazy-loaded images do appear in the full-page screenshot. This happens because the browser has a preload scanner that may fetch images that are within a certain distance of the viewport (typically 1250px in Chrome). If an image is close enough to the initial viewport, it might be fetched before the screenshot is taken. Also, if the page uses fetchpriority="high" or the image is considered critical, Chrome may ignore lazy loading. So the behavior is not always consistent—it depends on the image’s position, the page’s structure, and the browser’s heuristics.
Frequently Asked Questions
Why does my full-page screenshot show gray boxes where images should be?
Those gray boxes are placeholders that the browser renders for lazy-loaded images before they are fetched. Since the screenshot tool doesn’t trigger the fetch, the placeholder remains. Disabling lazy loading in the Rendering tab will make those boxes disappear.
Does this happen in Firefox or Safari DevTools too?
Yes, similar behavior occurs in other browsers’ developer tools. Firefox’s full-page screenshot also resizes the viewport without scrolling, so lazy-loaded images are missed. Safari has a similar limitation. The workaround is the same: disable lazy loading or use a scrolling script.
Can I use the Network tab to force all images to load?
No, the Network tab only shows requests; it doesn’t trigger them. However, you can use the “Disable cache” option, but that only affects caching, not lazy loading. The Rendering tab setting is the correct way.
Will this problem affect screenshots taken with Puppeteer?
Puppeteer’s page.screenshot({fullPage: true}) has the same issue if the page uses lazy loading. To fix it, you need to scroll the page manually in Puppeteer before taking the screenshot, or use page.evaluate to set loading="eager" on all images. Many developers write a loop that scrolls to the bottom and waits for network idle.
Is there a way to make lazy loading not affect my own site’s screenshots?
If you control the site, you can add a query parameter (e.g., ?screenshot=1) that disables lazy loading via JavaScript. Alternatively, you can use CSS to force images to load by setting content-visibility: visible on all images, but that’s a hack. The cleanest approach is to use a headless browser script that simulates scrolling.
Why does the full-page screenshot sometimes include images that are far down the page?
This can happen if the site uses a different lazy-loading strategy, such as loading images when they are about to enter the viewport but with a large threshold, or if the images are not actually lazy-loaded (e.g., they have loading="eager"). It’s also possible that the page uses a placeholder that looks like an image (e.g., a colored div) that is captured.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.