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 DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk3 min

How to Set a Delay Before Taking a Website Screenshot with Puppeteer

Add an awaited JavaScript timer before Puppeteer’s screenshot call, or wait for a page condition when a fixed delay cannot reliably indicate readiness.

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.

To pause before a Puppeteer screenshot, await a JavaScript timer immediately before page.screenshot(). The duration is in milliseconds; for example, 2_000 waits two seconds:

await new Promise(resolve => setTimeout(resolve, 2_000));
await page.screenshot({ path: 'screenshot.png' });

The delay belongs in your Node.js code, not in the screenshot options. If you can identify a page condition that means the content is ready, waiting for that condition is usually more reliable than sleeping for a fixed time.

As an Amazon Associate I earn from qualifying purchases.

Use an awaited timer for a fixed delay

Put the timer after navigation and directly before the capture. This complete example opens a page, waits two seconds, then saves a screenshot:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  try {
    const page = await browser.newPage();
    await page.goto('https://example.com');
    await new Promise(resolve => setTimeout(resolve, 2_000));
    await page.screenshot({ path: 'screenshot.png' });
  } finally {
    await browser.close();
  }
})();

Change 2_000 to the required number of milliseconds: 500 is half a second, and 5_000 is five seconds. The timer waits the chosen duration even when the page becomes ready sooner. Puppeteer documents screenshot capture through Page.screenshot() and its screenshots guide.

#1 Best Overall

Choose a wait that matches the page state

A delay only says that time has passed. It does not establish that a particular element rendered, that network activity stopped, or that an animation finished. Pick the signal that corresponds to what your screenshot must show.

Wait strategy Use it when Trade-off
Fixed timer A known timed change, such as a delayed visual update, needs extra time after navigation. Always waits the full duration, and does not prove the target content is ready.
Network idle You need to wait for a quieter network after initial navigation. Network quiet is not proof that a specific widget, client-rendered update, or animation has completed.
Selector or page condition A known element or measurable page state signals readiness. Requires a meaningful condition and a suitable timeout.

Wait for an element

If a report displays a readiness marker when its content is available, wait for that marker instead of guessing a duration:

await page.goto('https://example.com');
await page.waitForSelector('.report-ready', { visible: true });
await page.screenshot({ path: 'screenshot.png' });

Replace .report-ready with a selector that represents the state you need. Puppeteer describes selector waits and locator behavior in its page interactions guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.

Wait for network quiet or another condition

Puppeteer’s screenshot guide shows navigation with waitUntil: 'networkidle2'. For example:

await page.goto('https://example.com', { waitUntil: 'networkidle2' });
await page.screenshot({ path: 'screenshot.png' });

This addresses initial network loading; it does not guarantee that every delayed widget or visual effect is complete. For a custom readiness condition, the Page API includes waitForFunction() and waitForNetworkIdle(). Use the condition that reflects the visual state you are capturing.

Capture a full page after waiting

Apply the same wait before a full-page capture, then set the documented fullPage screenshot option:

Rank #3
15.6 Inch Win 11 Laptop Computer, N4020, 4GB DDR4 RAM, 128GB Storage | LPDDR4 RAM, 180° Lay-Flat, Dual-Band WiFi, Type-C PD Fast Charging, Thin & Lightweight for Students, Home & Office, Gray
  • WINDOWS 11 | STABLE PERFORMANCE: Powered by Intel Celeron N4020 processor and Windows 11 system, this laptop delivers stable performance for everyday computing tasks. It supports web browsing, online learning, document editing, email communication, and basic office work with optimized power efficiency, providing a practical and reliable experience for essential daily use for daily use.
  • 15.6” FHD IPS DISPLAY: Features a 15.6-inch Full HD IPS display with narrow bezels, offering wider viewing angles and clearer image details compared to standard panels. The improved screen-to-body ratio enhances visual experience for study, reading, document work, and video playback, making it suitable for both productivity and entertainment use.
  • 4GB DDR4 + 128GB eMMC STORAGE: Equipped with 4GB DDR4 memory and 128GB eMMC storage for everyday basics such as browsing, documents, email, and online learning platforms. The built-in TF card slot supports storage expansion up to 1TB, giving you more flexibility for files, photos, videos, and daily documents. TF card not included.
  • CONNECTIVITY & PORTS: Includes 1× TF card slot, 2× USB 3.2 Gen1 ports, and 2× full-featured Type-C ports (USB 3.2 Gen1). The Type-C ports support data transfer, charging, and video output, enabling flexible connection with external devices such as monitors, storage, and peripherals for daily work and study use.
  • LIGHTWEIGHT DESIGN | ONLINE COMMUNICATION: Designed with a slim, portable profile, this laptop is easy to carry for school, commuting, and travel. A built-in 1MP front camera supports online classes, video meetings, remote communication, and everyday conferencing. The 3300mAh battery works with the low-power system design to support practical daily use, while thermal optimization helps maintain quieter operation during extended tasks.
await page.goto('https://example.com');
await new Promise(resolve => setTimeout(resolve, 2_000));
await page.screenshot({ path: 'screenshot.png', fullPage: true });

fullPage controls the capture area; it does not add a delay. See Puppeteer’s ScreenshotOptions for documented capture settings.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Timeouts and common mistakes

  • Adding delay to page.screenshot(): The documented screenshot options do not include a delay setting. Put the timer before the screenshot call.
  • Forgetting await: Without awaiting the timer promise, execution can reach the screenshot before the delay finishes.
  • Sleeping when readiness is observable: A fixed timer cannot confirm that the target state exists. Prefer a relevant selector or page condition when available.
  • Treating network idle as animation completion: Quiet network activity and a finished animation are different conditions. Wait for a page state that represents the image you want.
  • Confusing wait time with a Puppeteer timeout: JavaScript’s setTimeout duration is separate from the timeout for Puppeteer wait operations. The WaitTimeoutOptions reference lists a 30,000-millisecond default for applicable waits and allows timeout configuration. That is not the duration of your timer.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. A GET request captures a URL without setting up Puppeteer in your script:

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

See the ScreenshotNeo documentation for request options. Cookie banners, popups, and chat widgets are removed before capture; bot checks, blank pages, and failed loads are never billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card, and paid plans start at $5 for 3,000. Sign up for free.

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
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver 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.