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

Method whenFirstVisible

src/service/ampdoc-impl.js:684–688  ·  view source on GitHub ↗

* Returns a Promise that only ever resolved when the current * AMP document first becomes visible. * @return {!Promise}

()

Source from the content-addressed store, hash-verified

682 * @return {!Promise}
683 */
684 whenFirstVisible() {
685 return this.signals_
686 .whenSignal(AmpDocSignals_Enum.FIRST_VISIBLE)
687 .then(() => undefined);
688 }
689
690 /**
691 * Returns a Promise that resolve when current doc becomes visible.

Callers 15

test-ampdoc.jsFile · 0.45
test-viewer.jsFile · 0.45
test-activity.jsFile · 0.45
test-3p-frame.jsFile · 0.45
handleClickUrlFunction · 0.45
urlMethod · 0.45
preloadMethod · 0.45
getMethod · 0.45
coreServicesAvailableMethod · 0.45

Calls 2

whenSignalMethod · 0.80
thenMethod · 0.45

Tested by

no test coverage detected