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

Method getFirstVisibleTime

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

* Returns the time when the document has become visible for the first time. * If document has not yet become visible, the returned value is `null`. * @return {?time}

()

Source from the content-addressed store, hash-verified

704 * @return {?time}
705 */
706 getFirstVisibleTime() {
707 return /** @type {?number} */ (
708 this.signals_.get(AmpDocSignals_Enum.FIRST_VISIBLE)
709 );
710 }
711
712 /**
713 * Returns the time when the document has become visible for the last time.

Callers 5

test-ampdoc.jsFile · 0.45
test-viewer.jsFile · 0.45
tickSinceVisibleMethod · 0.45
getStartTimeMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected