Back to Puppeteer

Page.waitForNetworkIdle() method

website/versioned_docs/version-24.40.0/api/puppeteer.page.waitfornetworkidle.md

19.2.2713 B
Original Source

Page.waitForNetworkIdle() method

Waits for the network to be idle.

Signature

typescript
class Page {
  waitForNetworkIdle(options?: WaitForNetworkIdleOptions): Promise<void>;
}

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

options

</td><td>

WaitForNetworkIdleOptions

</td><td>

(Optional) Options to configure waiting behavior.

</td></tr> </tbody></table>

Returns:

Promise<void>

A promise which resolves once the network is idle.

Remarks

The function will always wait at least the set IdleTime.