For AI agents: a documentation index is available at /llms.txt
Skip to main content

WaitUntilHistory

The different stages of the browser's loading process

enum WaitUntilHistory {
commit
domContentLoaded
load
networkIdle
networkAlmostIdle
}

Values

WaitUntilHistory.commit

Fired when network response is received and the document started loading

WaitUntilHistory.domContentLoaded

Fired when the DOMContentLoaded event is fired

WaitUntilHistory.load

Fired when the 'load' event occurs

WaitUntilHistory.networkIdle

Use with caution: Fired when there are no network connections for at least 500 ms. A page that holds a long-lived connection open never reaches this state, so the wait is bounded: once the page reaches networkAlmostIdle it settles for networkAlmostIdle after a second in which nothing arrives and no resource the page is still waiting on remains outstanding, and a page that never falls silent is given at most 30 seconds more, or half the timeout still unspent if that is smaller

WaitUntilHistory.networkAlmostIdle

Use with caution: Fired when there are no more than 2 network connections for at least 500 ms

Member Of

back mutation ● content mutation ● forward mutation ● reload mutation

Was this page helpful?