Documentation Index
Fetch the complete documentation index at: https://docs.extractbase.com/llms.txt
Use this file to discover all available pages before exploring further.
Represents different stages in a page’s lifecycle. Used to determine when a navigation or page load operation is considered complete.
Definition
enum LifecycleEvent {
DOM_CONTENT_LOADED
LOAD
NETWORK_IDLE
COMMIT
}
Values
DOM_CONTENT_LOADED
Wait until the `DOMContentLoaded` event is fired. This means the HTML has been fully loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading.
LOAD
Wait until the `load` event is fired. This typically means the page and all its dependent resources (stylesheets, images) have finished loading.
NETWORK_IDLE
Wait until there are no more than 0-2 network connections for at least 500 ms. This is often the most reliable way to ensure a page is fully loaded and ready for interaction.
COMMIT
Wait until a navigation commits. This is useful for tracking navigations that might not reach `DOMContentLoaded` or `load` states, for example, when navigating to a PDF or a file download.