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

Function onDocumentReady

src/core/document/ready.js:30–32  ·  view source on GitHub ↗
(doc, callback)

Source from the content-addressed store, hash-verified

28 * @param {function(Document):void} callback
29 */
30export function onDocumentReady(doc, callback) {
31 onDocumentState(doc, isDocumentReady, callback);
32}
33
34/**
35 * Calls the callback when document's state satisfies the stateFn.

Callers 6

experiments.jsFile · 0.90
test-ready.jsFile · 0.90
fontStylesheetTimeoutFunction · 0.90
amp-login-done.jsFile · 0.90
whenDocumentReadyFunction · 0.70

Calls 1

onDocumentStateFunction · 0.70

Tested by

no test coverage detected