October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk6 min

Puppeteer: Full-Page Screenshots with Lazy-Loaded Images

A reliable Puppeteer workflow for triggering lazy-loaded images before capturing a full-page screenshot, with runnable JavaScript and troubleshooting guidance.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To include lazy-loaded images in a full-page Puppeteer screenshot, scroll through the page to trigger its loading behavior, wait for images to load, return to the top, and capture with fullPage: true. A navigation wait such as networkidle2 alone does not guarantee that images below the fold have loaded.

Why a full-page capture can still miss images

Puppeteer’s page.screenshot() captures a page, and fullPage: true requests the full page rather than just the viewport. The documented default for fullPage is false. Neither setting triggers lazy loading by itself. Pages may load images only when they approach the viewport, so a capture taken immediately after navigation can include empty image areas.

As an Amazon Associate I earn from qualifying purchases.

Puppeteer provides scrolling and waiting primitives; the website determines what triggers its lazy content. Native lazy-loaded images, intersection observers, application code, and CSS background images may behave differently. A scroll-and-check workflow is therefore a practical strategy, not a universal guarantee.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

See Puppeteer’s Screenshots guide, ScreenshotOptions reference, and Page interactions guide. The documentation displayed Puppeteer 25.12.0 when reviewed on October 3, 2026; check the API for the version installed in your project.

#1 Best Overall
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black | 1080p with auto-light correction, built-in mic, privacy shutter, USB-A, compatible with Teams, Google Meet, Zoom and more
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
  • Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
  • Built-In Mic: The built-in microphone lets others hear you clearly during video calls
  • Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works

A robust scroll, verify, and capture workflow

The example below uses Puppeteer’s JavaScript API. It scrolls in viewport-sized increments, waits for images that have entered the viewport, repeats the pass if loading images lengthen the document, and checks image elements before capturing. It returns to the top before taking the full-page screenshot.

Save as screenshot.js, install Puppeteer with npm install puppeteer, then run node screenshot.js https://example.com. Replace the example URL with a page you are authorized to access.

Rank #2
Sale
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black | Auto-Light Correct, Noise-Reducing Mic, Zoom, Microsoft, Teams, Skype, Nintendo Switch 2 New GameChat Mode, PC Mac compatible
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
  • The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
  • C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
  • The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.
const puppeteer = require('puppeteer');

const url = process.argv[2];
if (!url) {
  throw new Error('Usage: node screenshot.js <url>');
}

const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));

(async () => {
  const browser = await puppeteer.launch({ headless: true });
  try {
    const page = await browser.newPage();
    await page.setViewport({ width: 1365, height: 900 });

    await page.goto(url, { waitUntil: 'networkidle2', timeout: 60000 });

    const viewportHeight = page.viewport().height;
    let previousHeight = 0;

    // Repeat if newly loaded content increases the page height.
    for (let pass = 0; pass < 3; pass++) {
      const heightBefore = await page.evaluate(() =>
        Math.max(document.body.scrollHeight, document.documentElement.scrollHeight)
      );

      for (let y = 0; y < heightBefore; y += viewportHeight) {
        await page.evaluate(y => window.scrollTo(0, y), y);

        // Wait briefly for images currently near the viewport to settle.
        await page.evaluate(async () => {
          const inView = img => {
            const r = img.getBoundingClientRect();
            return r.bottom >= 0 && r.top <= window.innerHeight;
          };
          const images = [...document.images].filter(inView);
          await Promise.all(images.map(img => {
            if (img.complete) return Promise.resolve();
            return new Promise(resolve => {
              img.addEventListener('load', resolve, { once: true });
              img.addEventListener('error', resolve, { once: true });
              setTimeout(resolve, 5000);
            });
          }));
        });
        await sleep(150);
      }

      const heightAfter = await page.evaluate(() =>
        Math.max(document.body.scrollHeight, document.documentElement.scrollHeight)
      );
      if (heightAfter === heightBefore || heightAfter === previousHeight) break;
      previousHeight = heightAfter;
    }

    await page.evaluate(() => window.scrollTo(0, 0));

    // Report image elements that did not successfully load; this is diagnostic,
    // not a guarantee about CSS background images or other custom content.
    const imageStatus = await page.evaluate(() =>
      [...document.images].map(img => ({
        src: img.currentSrc || img.src,
        loaded: img.complete && img.naturalWidth > 0
      }))
    );
    const failedImages = imageStatus.filter(img => !img.loaded);
    if (failedImages.length) {
      console.warn('Images not confirmed loaded:', failedImages);
    }

    await page.screenshot({ path: 'page.png', fullPage: true });
    console.log('Saved page.png');
  } finally {
    await browser.close();
  }
})().catch(error => {
  console.error(error);
  process.exitCode = 1;
});

What the checks do—and do not—prove

  • The scroll pass brings viewport-triggered content near the viewport, giving common lazy-loading implementations a chance to request images.
  • For image elements, complete and a nonzero naturalWidth are useful signals that an image loaded successfully. The sample logs those that are not confirmed.
  • The five-second per-image wait is a timeout, not proof that an image will load within that time. Adjust it for the target site and the runtime budget.
  • Checking document.images does not cover CSS background images, canvas content, or every custom rendering strategy. Inspect the target page if those matter.
  • Repeated passes help when image loading expands the document, but the example caps passes at three to avoid an unbounded loop on pages that keep changing.

Choose a navigation wait without mistaking it for image readiness

waitUntil controls when page.goto() considers navigation ready. Puppeteer documents network-idle conditions using a 500 ms idle interval: networkidle0 waits for zero active connections, while networkidle2 permits up to two. These can be useful navigation checkpoints, but neither means every lazy image has loaded.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Wait condition Meaning When it may help
networkidle0 No active network connections for at least 500 ms. When the page becomes genuinely quiet after navigation; may time out on pages with persistent connections.
networkidle2 No more than two active network connections for at least 500 ms. Often more tolerant of pages with a small amount of ongoing activity.

These definitions are documented in Puppeteer’s PuppeteerLifeCycleEvent reference, WaitForNetworkIdleOptions reference, and WaitForOptions reference. If either condition is unsuitable for a particular site, use another navigation checkpoint and retain the explicit scroll-and-image checks.

Rank #3
Sale
NexiGo N60 1080P Webcam with Microphone, Software Control & Privacy Cover, USB HD Computer Web Camera, Plug and Play, for Zoom/Skype/Teams, Conferencing and Video Calling
  • 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
  • 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
  • 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.

Common problems and fixes

The screenshot has blank areas below the fold

The page may not have been scrolled far enough to trigger its loading behavior, or the screenshot may have run before requests completed. Scroll through the full document, wait on visible image elements, and repeat the pass if the document height grows. If the site uses custom observers or CSS backgrounds, inspect its specific loading mechanism; an image-element check cannot verify those cases.

networkidle0 or networkidle2 times out

Persistent connections or continuing page activity can prevent a network-idle condition. Try networkidle2 if waiting for zero connections is too strict, or choose a different navigation wait and rely on page-specific readiness checks after navigation. Do not treat a successful network-idle wait as confirmation that all lazy content is present.

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera | USB Type-A & A-to-C Adapter, Fixed Focus, Plug&Play for Zoom/Teams/Facetime/YouTube/Google Meet/Switch 2 Camera, 2025 Version
  • 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
  • Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
  • Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
  • Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
  • High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)

The page gets taller while scrolling

Images or other content may change layout as they load. Measure the document height after a pass and scroll again if it increased. Keep a pass limit or another stopping condition because pages with infinite scrolling may keep adding content indefinitely.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

An image reports as incomplete or has zero natural width

The request may have failed, the image may not have been activated by the page’s loading logic, or it may not be a normal image element. Check the reported URL, browser console, and network errors; then adapt the trigger or wait to the site. A timed-out wait only lets the script continue—it does not make a failed image appear.

Best Value
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black | 30fps Video, Clear Audio, Light Correction, Works with Teams, Meet, Zoom, Nintendo Switch 2, Mac, Tablet
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
  • Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
  • Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
  • Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video

The output is still only a viewport

Confirm the capture call includes fullPage: true and that the page has finished expanding before capture. Puppeteer documents the default as false, so omitting the option produces a viewport screenshot.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If you need a screenshot without maintaining a Puppeteer browser workflow, ScreenshotNeo is a website screenshot API and MCP server. Its one-call API accepts a URL and can return PNG, JPEG, WebP, or PDF output. For a full-page capture, use the documented full-page option; see the ScreenshotNeo API documentation for request parameters and current behavior.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

ScreenshotNeo accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents and MCP clients. The free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000 shots.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Sign up for ScreenshotNeo’s free plan to try 1,000 screenshots a month with no card.

Frequently Asked Questions

Does Puppeteer automatically load every lazy image when taking a full-page screenshot?

No. fullPage: true controls screenshot dimensions; it does not guarantee lazy content has been triggered or rendered.

Can I use the same approach for images loaded by CSS?

The sample verifies HTML image elements only. CSS background images and other custom content require checks suited to the page’s implementation.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.