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

Function toggleObserveVisibility

examples/ac-creative.js:59–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59function toggleObserveVisibility() {
60 if (shouldStopVis) {
61 stopVisFunc();
62 } else {
63 stopVisFunc = window.context.observePageVisibility(dummyCallback);
64 }
65 shouldStopVis = !shouldStopVis;
66}
67
68function resizeAd() {
69 window.context

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected