MCPcopy Create free account
hub / github.com/ampproject/amphtml / isDocumentReady

Function isDocumentReady

third_party/subscriptions-project/config.js:46–49  ·  view source on GitHub ↗

* Whether the document is ready. * @param {!Document} doc * @return {boolean}

(doc)

Source from the content-addressed store, hash-verified

44 * @return {boolean}
45 */
46function isDocumentReady(doc) {
47 const readyState = getReadyState(doc);
48 return readyState != 'loading' && readyState != 'uninitialized';
49}
50
51/**
52 * Calls the callback when document is ready.

Callers 1

isReadyMethod · 0.70

Calls 1

getReadyStateFunction · 0.70

Tested by

no test coverage detected