MCPcopy
hub / github.com/ampproject/amphtml / isDocumentReady

Function isDocumentReady

src/core/document/ready.js:8–14  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

6 * @return {boolean}
7 */
8export function isDocumentReady(doc) {
9 return (
10 doc.readyState != ReadyState_Enum.LOADING &&
11 // IE11-only
12 /** @type {string} */ (doc.readyState) != 'uninitialized'
13 );
14}
15
16/**
17 * Whether the document has loaded all the css and sub-resources.

Callers 3

test-ready.jsFile · 0.90
isIframeReadyFunction · 0.90
isReadyMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected