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

Function whenDocumentComplete

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

Source from the content-addressed store, hash-verified

72 * @return {Promise<Document>}
73 */
74export function whenDocumentComplete(doc) {
75 return new Promise((resolve) => {
76 onDocumentState(doc, isDocumentComplete, resolve);
77 });
78}

Callers 5

test-ready.jsFile · 0.90
bootstrapFunction · 0.90
preconnectToOriginFunction · 0.90
constructorMethod · 0.90
getTimingDataAsyncFunction · 0.90

Calls 1

onDocumentStateFunction · 0.70

Tested by

no test coverage detected