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 allows at most 30 seconds more, or half the timeout still unspent if that is smaller, and then settles for networkAlmostIdle

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?