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

Function waitForBodyOpenPromise

src/core/dom/index.js:86–90  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

84 * @return {Promise<void>}
85 */
86export function waitForBodyOpenPromise(doc) {
87 return new Promise((resolve) =>
88 waitForBodyOpen(doc, /** @type {function():void} */ (resolve))
89 );
90}
91
92/**
93 * Removes the element.

Callers 6

makeBodyVisibleFunction · 0.90
adoptFunction · 0.90
adoptWithMultidocDepsFunction · 0.90
adoptShadowModeFunction · 0.90
constructorMethod · 0.90
constructorMethod · 0.90

Calls 1

waitForBodyOpenFunction · 0.85

Tested by

no test coverage detected