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

Function onDocumentReady

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

* Calls the callback when document is ready. * @param {!Document} doc * @param {function(!Document)} callback

(doc, callback)

Source from the content-addressed store, hash-verified

54 * @param {function(!Document)} callback
55 */
56function onDocumentReady(doc, callback) {
57 onDocumentState(doc, isDocumentReady, callback);
58}
59
60/**
61 * Calls the callback once when document's state satisfies the condition.

Callers 1

whenDocumentReadyFunction · 0.70

Calls 1

onDocumentStateFunction · 0.70

Tested by

no test coverage detected