Module "wordpress-packages/real-queue/lib/utils/ready"
Functions
Const ready
- ready(fn?: () => void, state?: DocumentReadyState): Promise<void>
-
Parameters
-
Optional fn: () => void
-
Default value state: DocumentReadyState = "complete"
Returns Promise<void>
Wait DOM is ready depending on a state.
interactive
: Defer scripts are executing, but DOM is readycomplete
: All scripts including deferred ones are executed and DOM is readyhttps://stackoverflow.com/a/65430734/5506547
https://stackoverflow.com/a/51980980/5506547