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

Method ioCallback

src/service/loading-indicator.js:44–47  ·  view source on GitHub ↗
(records)

Source from the content-addressed store, hash-verified

42 const {win} = ampdoc;
43 const inViewport = this.inViewport_.bind(this);
44 const ioCallback = (records) =>
45 /** @type {!Array<!IntersectionObserverEntry>} */ (records).forEach(
46 inViewport
47 );
48 /** @private @const {!IntersectionObserver} */
49 this.io_ = createViewportObserver(ioCallback, win);
50

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected