mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
51 lines
640 B
Markdown
51 lines
640 B
Markdown
|
---
|
||
|
sidebar_label: Page.waitForNetworkIdle
|
||
|
---
|
||
|
|
||
|
# 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](./puppeteer.waitfornetworkidleoptions.md)
|
||
|
|
||
|
</td><td>
|
||
|
|
||
|
_(Optional)_ Options to configure waiting behavior.
|
||
|
|
||
|
</td></tr>
|
||
|
</tbody></table>
|
||
|
**Returns:**
|
||
|
|
||
|
Promise<void>
|
||
|
|
||
|
A promise which resolves once the network is idle.
|