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 desk4 min

How to Add a Delay Before Browserless Captures a Screenshot

Set Browserless’s REST Screenshot API waitForTimeout field in milliseconds, or use a selector or function when capture depends on page readiness.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For Browserless’s current REST Screenshot API, add "waitForTimeout": 3000 to the JSON request body to pause for three seconds before capture. It is a top-level request field beside url, not a setting inside options.

Add a fixed delay to a REST Screenshot API request

Send a POST request to the Screenshot API with the URL, the millisecond delay, and screenshot-specific settings under options. Browserless documents waitForTimeout as a fixed wait, useful for animations, transitions, and other time-based work. See the Screenshot API and Request Configuration references.

As an Amazon Associate I earn from qualifying purchases.

{
  "url": "https://example.com/",
  "waitForTimeout": 3000,
  "options": {
    "fullPage": true,
    "type": "png"
  }
}

The value is milliseconds: 3000 is three seconds. Replace the example URL with the page you need to capture and use a valid API token.

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

Runnable cURL example

curl -X POST 
  "https://production-sfo.browserless.io/screenshot?token=YOUR_API_TOKEN_HERE" 
  -H 'Content-Type: application/json' 
  -d '{
    "url": "https://example.com/",
    "waitForTimeout": 3000,
    "options": { "fullPage": true, "type": "png" }
  }' 
  --output screenshot.png

Use the token from your Browserless account dashboard. Avoid committing a live token to source control or publishing it in a client-side application.

#1 Best Overall

Choose a wait that matches page readiness

A fixed delay is simple, but it cannot tell whether the page is ready. Browserless also documents condition-based wait options in Request Configuration.

Wait type Use it when Behavior
waitForTimeout A predictable animation, transition, or time-based operation needs a known pause. Waits the specified number of milliseconds, even if the page becomes ready sooner.
waitForSelector A particular element signals that the page is ready. Returns immediately if the selector already exists; may fail if it does not appear before the selector timeout.
waitForFunction A page-specific JavaScript condition indicates rendering or data work has finished. Waits for the function condition to be met.
waitForEvent The page emits a custom event that marks readiness. Waits for that event; it is not intended for lifecycle events such as load or DOMContentLoaded.

Prefer a selector, function, or custom event when readiness can be observed reliably. A fixed delay always consumes its full duration and may still be too short on a slow page; a readiness condition avoids guessing a single pause duration.

Allow enough time for the whole request

Browserless has an overall request timeout configured with the timeout query parameter, separate from operation-specific waits. Timeout values are in milliseconds. The total budget must cover navigation, any fixed or condition-based wait, and screenshot generation. If that work exceeds the overall limit, the request can time out before it returns the image. See Timeout Configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Use the overall timeout for the maximum time the complete request may take.
  • Use waitForTimeout only for a deliberate pause, or choose a condition-based wait when the page provides a readiness signal.
  • If requests time out, review the navigation and wait durations together rather than increasing a single setting without checking the rest of the request.

Check the API generation before adapting examples

The current REST Screenshot API uses the shared request configuration and the fixed-delay field waitForTimeout. The older BaaS v1 /screenshot API documents a different property, waitFor, which can accept a numeric delay, a CSS selector, or a function. Do not copy that field into a current REST request without checking which endpoint and API generation you are calling.

BrowserQL is another distinct API shape. Its waitForTimeout mutation takes a time argument in milliseconds, for example waitForTimeout(time: 1000); that syntax is not the JSON request-body field used in the REST example. The mutation is documented at Browserless’s waitForTimeout reference.

Troubleshoot delays that do not work as expected

  • The screenshot starts too soon: Check that waitForTimeout is a top-level field alongside url, and that its value is in milliseconds. A three-second wait is 3000.
  • The request waits but the page is still incomplete: A fixed duration does not prove that data or images have loaded. Use a selector or page-specific function when available, or increase the delay only if the work is genuinely time-based.
  • The request times out: The overall request budget may not include enough time for navigation, the wait, and capture. Review the timeout query parameter and the operation-specific waits.
  • The API rejects or ignores the wait field: Confirm you are using the current REST Screenshot API. Older BaaS v1 examples use waitFor, while BrowserQL uses mutation syntax.
  • A custom-event wait never completes: Verify that the page emits the event you are waiting for. Browserless notes that waitForEvent is for custom events, not standard lifecycle events such as load or DOMContentLoaded.

Or skip the browser setup

ScreenshotNeo takes a screenshot with one GET request, so you do not need to build and maintain this Browserless request setup. The API accepts options including waits by selector, delay, or network idle; see the ScreenshotNeo documentation.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/ -o shot.webp
  • Cookie banners are accepted and removed before capture; newsletter popups and chat widgets are removed too. Each cleanup step can be turned off.
  • Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed. The response identifies the page verdict and billing status in headers.
  • An 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 with no card; paid plans start at $5 for 3,000 screenshots.

Sign up for ScreenshotNeo’s free plan.

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

Frequently Asked Questions

Is waitForTimeout measured in seconds or milliseconds?

Milliseconds: a value of 3000 represents three seconds.

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

Does a three-second delay guarantee that a page has finished loading?

No. It only waits for elapsed time; use a selector or page-specific condition when readiness depends on page state.

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
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.