Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk6 min

Puppeteer Full-Page Screenshots: Capturing Lazy-Loaded SVGs

Puppeteer’s fullPage option sets capture extent, not SVG readiness. Trigger lazy loading, verify the page-specific render state, then capture.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use page.screenshot({ fullPage: true }) to capture the full page, but do not treat that option—or networkidle2—as proof that lazy-loaded SVGs are ready. First trigger the page’s loading behavior, then wait for a condition tied to the actual SVG or component before taking the screenshot.

Why full-page screenshots can miss lazy-loaded SVGs

fullPage: true controls the screenshot’s extent: Puppeteer captures the full page rather than only the current viewport. It does not itself make the page scroll through its content or ensure that deferred resources have loaded. Puppeteer documents full-page capture separately from network-idle waiting in its screenshots guide and ScreenshotOptions API.

As an Amazon Associate I earn from qualifying purchases.

waitUntil: 'networkidle2' is a useful initial navigation condition, not a universal “everything is rendered” signal. A page may not request an asset until it approaches the viewport, or JavaScript may need to insert or update the graphic after another event. MDN notes that lazy-loaded media may still be unloaded when the window’s load event fires and that scrolling commonly triggers deferred loading (MDN: Lazy loading).

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

A historical report, Puppeteer issue #3202, described missing lower-page content despite network-idle navigation and a two-second delay. It concerned Puppeteer 1.7.0, Node.js 10.8.0, macOS, and lazy-loaded images and an iframe; it illustrates a timing problem, not a claim about every current Puppeteer version or SVG implementation.

#1 Best Overall
Dell Optiplex 3060 Desktop Computer | Intel i5-8500 (3.2) | 32GB DDR4 RAM | 1TB SSD Solid State | Built in WiFi | Bluetooth | Windows 11 Professional | Home or Office PC (Renewed)
  • [INTEL POWERED CONTENT] - Built with a 8th Generation Hexa-Core Intel i5 and 32GB of DDR4 RAM; Modern, Windows 11 ready, with 4K support, Executive multitasking, media streaming and smooth, multi-tab web browsing; Perfect as an all-purpose multimedia computer; built for content creators; Plenty of RAM and Mass storage for photo and video editing powered by Intel HD 630
  • [LATEST WIRELESS TECH] - This Dell Desktop Computer easily connects to the internet through the Built In WiFi / Bluetooth
  • [SOLID STATE STORAGE] - This Dell Computer setup comes with an ultra-fast 1TB Solid State Drive (SSD); Setup as the primary boot device; Boot and load programs with lightning speed ; Additional expansion available
  • [BUY & OWN WITH CONFIDENCE] - From the world's largest Microsoft Authorized Refurbisher; Quality Guarantee and Free Tech Support; Award-winning Customer Service; | Support Sustainable Business
  • [MODERN HI-SPEED PORTS] - USB 3.0 (x4) | USB 2.0 (x4) | DisplayPort (x1) | HDMI Port (x1) | Audio Combo Jack (x1) | Audio Out (x1) | RJ-45 Ethernet (x1) | Internal SATA (x3)

Identify how the page loads its SVGs

There is no universal SVG-ready check that applies to every page. Inspect the DOM and the page’s loading code before choosing a wait condition. The SVG may be:

  • Inline SVG markup: an <svg> node in the document. Its presence may not prove that the application has finished populating or updating it.
  • An external image: for example, an <img src="…svg">. For an image element, MDN documents the complete property as one way to examine load completion. Check that the image has a source and that it completed; a broken resource can also reach a completed state, so inspect naturalWidth or the page’s error state if appropriate.
  • Inserted or controlled by JavaScript: a component may create the SVG after an observer, network response, or application event. Wait for the specific component’s ready state, relevant node, or response rather than assuming an SVG selector alone proves completion.

Native lazy loading and JavaScript-driven viewport observation are different mechanisms; the markup and loader determine which trigger and readiness signal make sense. See MDN’s discussion of lazy loading and linked resources, including img and iframe elements, in its guide.

Rank #2
Dell Optiplex 7050 SFF Desktop PC Intel i7-7700 4-Cores 3.60GHz 32GB DDR4 1TB SSD WiFi BT HDMI Duel Monitor Support Windows 11 Pro Excellent Condition(Renewed)
  • Model: Dell OptiPlex 7050 Small Form Factor (SFF)
  • Processor: Intel Core i7-7700 3.60 GHz
  • Memory: 32GB DDR4 Ram
  • Storage: 1TB Solid State Drive (SSD) Fast Boot + Storage
  • Operating System: Windows 11 Pro (64-bit)

A Puppeteer workflow that triggers loading and waits for readiness

  1. Navigate: use an appropriate initial condition such as networkidle2, while remembering it only describes network activity at that time.
  2. Inspect the target: determine whether the SVGs are inline, external images, or application-rendered, and identify the actual selector or ready state.
  3. Trigger viewport-based loading if needed: scroll through the relevant content. This is appropriate when the page loads assets as they approach the viewport; scrolling is not a guarantee for every custom loader.
  4. Wait on the page-specific condition: use an observable signal that means the graphic is usable, not merely an arbitrary delay.
  5. Capture: take the full-page screenshot only after the relevant content is ready.

The following runnable example is a template. Replace the URL, selector, and readiness predicate with details from the target page. It scrolls in viewport-sized increments, returns to the top, waits for a matching SVG node, and captures the page:

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.
const puppeteer = require('puppeteer');

(async () => {
  const url = 'https://example.com';
  const browser = await puppeteer.launch({ headless: true });

  try {
    const page = await browser.newPage();
    await page.goto(url, { waitUntil: 'networkidle2' });

    // Useful only if this page triggers lazy loading as content enters the viewport.
    await page.evaluate(async () => {
      const step = Math.max(200, Math.floor(window.innerHeight * 0.8));
      const height = document.documentElement.scrollHeight;
      for (let y = 0; y < height; y += step) {
        window.scrollTo(0, y);
        await new Promise(resolve => setTimeout(resolve, 100));
      }
      window.scrollTo(0, 0);
    });

    // Replace with a selector/state that proves the target graphic is ready.
    await page.waitForFunction(() => {
      return document.querySelectorAll('svg.your-ready-selector').length > 0;
    });

    await page.screenshot({ path: 'capture.png', fullPage: true });
  } finally {
    await browser.close();
  }
})();

The example’s 100-millisecond pause is illustrative, not a tested setting or a universal timing recommendation. Its selector only proves that a matching node exists; if the page fills the SVG asynchronously, strengthen the predicate to check the relevant child, attribute, class, application state, or other observable completion signal.

Rank #3
Sale
HP All-in-OneDesktop Computer, 16GB DDR5 RAM, Intel Quad-Cores, 128GB SSD, WiFi6, Keyboard & Mouse, Windows 11
  • IMMERSIVE 24 INCH DISPLAY: Experience stunning clarity on a Full HD IPS screen with ultra-thin bezels, offering a 90% screen-to-body ratio that makes everything from spreadsheets to streaming come alive with vibrant colors and crisp details.
  • POWERFUL INTEL PROCESSING: Tackle demanding tasks with ease thanks to the Intel processor and 16GB of high-speed memory, delivering smooth performance whether you're multitasking between applications or running productivity software.
  • GENEROUS STORAGE: Store all your important files, photos, and programs with blazing-fast solid state drive technology that ensures quick boot times, rapid file access, and plenty of space for your digital life.
  • ENHANCED PRIVACY AND COLLABORATION: Work confidently with the pop-up privacy camera that tucks away when not in use, plus dual microphones with noise reduction for crystal-clear video calls that keep you connected professionally.
  • ECO-CONSCIOUS DESIGN: Feel good about your purchase with an EPEAT Gold registered and ENERGY STAR certified computer that combines premium performance with responsible environmental manufacturing practices.

For external SVGs in image elements

If inspection confirms the target is an <img>, wait for the expected images to complete and verify successful loading. For example, adapt a selector and condition like this:

await page.waitForFunction(() => {
  const images = [...document.querySelectorAll('img.svg-graphic')];
  return images.length > 0 && images.every(img => img.complete && img.naturalWidth > 0);
});

This condition is for image elements only. It does not establish readiness for inline SVG or a JavaScript component that has not yet rendered its graphic.

Rank #4
Dell Optiplex 3050 SFF Desktop Computer PC, Intel Quad Core i5-6500 up to 3.6GHz, 16GB DDR4, 256GB SSD, WiFi, 4K Support, DP, HDMI, Windows 11 Pro 64 Bit (Renewed)
  • This Certified Refurbished product is tested and certified to look and work like new. The refurbishing process includes functionality testing, basic cleaning, inspection, and repackaging. The product ships with all relevant accessories, a minimum 90-day warranty, and may arrive in a generic box. Only select sellers who maintain a high-performance bar may offer Certified Refurbished products on Amazon.com.
  • Dell Optiplex 3050 SFF Desktop computer PC, Intel Quad Core i5-6500 up to 3.6GHz, 16GB DDR4, 256GB SSD
  • Includes: USB Keyboard & Mouse, USB WiFi adapter, Microsoft office 30 days free trail.
  • Port: Front: USB 3.0(2), USB 2.0(2); Rear: DP, HDMI, USB 3.0(2), USB 2.0(2), RJ-45.
  • Support 4K (3840x2160) Dual display, makes it easy to connect two monitors at the same time, and you can expand working Windows, mirror content, or expand a single window across multiple monitors.

For inline or application-rendered SVG

Wait on the state the application actually exposes. A basic node-count check can establish presence, but not that drawing, data binding, or later DOM updates are finished. If the app marks a component ready with a documented attribute or class, use that; otherwise inspect the relevant DOM or application event and build a predicate around it. Do not substitute img.complete for inline SVG.

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

Why scrolling and explicit readiness beat a fixed sleep

A fixed delay starts counting immediately; it does not cause an observer to fire if the relevant element has never entered the viewport. Nor does it tell you whether an external resource succeeded or a component completed its update. Scrolling can trigger viewport-based loaders, while an explicit predicate makes the completion requirement inspectable and easier to diagnose.

Best Value
Dell Windows 11 Desktop Computer OptiPlex 5060 | Intel Core i5-8500 Six Core (4.3GHz Turbo) | 16GB DDR4 RAM | 500GB SSD Solid State + 1TB HDD | WiFi + Bluetooth | Home or Office PC (Renewed)
  • Connectivity: Includes WiFi, Bluetooth, and LAN for wireless and wired connections
  • Memory: Features 16GB DDR4 RAM for smooth multitasking and performance
  • Storage: Combines 500GB SSD and 1TB HDD for ample storage space
  • Graphics: Integrated Intel UHD Graphics 630 for crisp visuals and video playback
  • Design: Sleek desktop tower with black color and slim profile for modern look

Scrolling has possible page-specific side effects: sticky elements can change position, animations may run, and infinite-scroll pages may append more content. Inspect the resulting capture and adapt the scroll approach to the page. If a page uses a custom trigger rather than viewport entry, reproduce that trigger or wait for its documented state instead of repeatedly scrolling.

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

Troubleshooting missing or incomplete SVGs

  • The bottom of the page is blank: check whether content loads only when scrolled into view. Scroll through the relevant region before capturing, then wait for the actual content state.
  • networkidle2 succeeds but graphics are absent: treat network idleness as an initial navigation condition only. It cannot prove that an untriggered lazy loader ran.
  • A fixed delay works inconsistently: replace or supplement the delay with a selector, image-completion check, or application-specific readiness predicate.
  • The selector wait never resolves: confirm the selector against the live DOM, whether the SVG is inline or external, and whether the page requires scrolling or another event first. Use a bounded timeout and surface the failing condition rather than silently taking an incomplete screenshot.
  • The element exists but looks empty: node presence may precede rendering or content insertion. Wait for the expected children, attributes, or ready marker, and check for failed requests or application errors.
  • Scrolling changes the page: inspect for sticky behavior, animations, or content appended during scrolling. Adjust the trigger strategy and decide what “full page” means for a page that grows while being traversed.

Version and evidence scope

The Puppeteer documentation consulted identifies version 25.12.0; confirm the API against the version installed in your project because documentation can change. The guidance here explains a general workflow, not a diagnosis of a particular site: without its URL or markup, the exact SVG mechanism and best readiness predicate cannot be established. MDN’s lazy-loading guide was last modified on 2026-03-27.

Or skip the browser setup

If you need an API-based capture instead of managing a Puppeteer browser, ScreenshotNeo accepts one GET request with a URL and can return PNG, JPEG, WebP, or PDF. For example:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo documentation for request options. Its capture flow accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses include X-Page-Verdict and X-Billed headers. ScreenshotNeo also offers an MCP server with take_screenshot, get_page_info, and capture_pdf tools for AI agents. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

Sign up free for 1,000 screenshots a month, with no card required.

Frequently Asked Questions

Does Puppeteer’s `fullPage: true` trigger lazy loading?

No. It sets the screenshot extent; triggering deferred loading and waiting for content readiness are separate steps.

Can I use `img.complete` for every SVG?

No. That property applies to image elements, not inline SVG markup or every JavaScript-rendered component.

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

Quick Recap

Bestseller No. 2
Dell Optiplex 7050 SFF Desktop PC Intel i7-7700 4-Cores 3.60GHz 32GB DDR4 1TB SSD WiFi BT HDMI Duel Monitor Support Windows 11 Pro Excellent Condition(Renewed)
Dell Optiplex 7050 SFF Desktop PC Intel i7-7700 4-Cores 3.60GHz 32GB DDR4 1TB SSD WiFi BT HDMI Duel Monitor Support Windows 11 Pro Excellent Condition(Renewed)
Model: Dell OptiPlex 7050 Small Form Factor (SFF); Processor: Intel Core i7-7700 3.60 GHz; Memory: 32GB DDR4 Ram
$384.00
Bestseller No. 4
Dell Optiplex 3050 SFF Desktop Computer PC, Intel Quad Core i5-6500 up to 3.6GHz, 16GB DDR4, 256GB SSD, WiFi, 4K Support, DP, HDMI, Windows 11 Pro 64 Bit (Renewed)
Dell Optiplex 3050 SFF Desktop Computer PC, Intel Quad Core i5-6500 up to 3.6GHz, 16GB DDR4, 256GB SSD, WiFi, 4K Support, DP, HDMI, Windows 11 Pro 64 Bit (Renewed)
Includes: USB Keyboard & Mouse, USB WiFi adapter, Microsoft office 30 days free trail.; Port: Front: USB 3.0(2), USB 2.0(2); Rear: DP, HDMI, USB 3.0(2), USB 2.0(2), RJ-45.
$189.99
Bestseller No. 5
Dell Windows 11 Desktop Computer OptiPlex 5060 | Intel Core i5-8500 Six Core (4.3GHz Turbo) | 16GB DDR4 RAM | 500GB SSD Solid State + 1TB HDD | WiFi + Bluetooth | Home or Office PC (Renewed)
Dell Windows 11 Desktop Computer OptiPlex 5060 | Intel Core i5-8500 Six Core (4.3GHz Turbo) | 16GB DDR4 RAM | 500GB SSD Solid State + 1TB HDD | WiFi + Bluetooth | Home or Office PC (Renewed)
Connectivity: Includes WiFi, Bluetooth, and LAN for wireless and wired connections; Memory: Features 16GB DDR4 RAM for smooth multitasking and performance
$269.99

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.

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
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.