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

Function whenDocumentReady

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

* Returns a promise that is resolved when document is ready. * @param {!Document} doc * @return {!Promise<!Document>}

(doc)

Source from the content-addressed store, hash-verified

88 * @return {!Promise<!Document>}
89 */
90function whenDocumentReady(doc) {
91 return new Promise((resolve) => {
92 onDocumentReady(doc, resolve);
93 });
94}
95
96/**
97 * Copyright 2018 The Subscribe with Google Authors. All Rights Reserved.

Callers 1

whenReadyMethod · 0.70

Calls 1

onDocumentReadyFunction · 0.70

Tested by

no test coverage detected