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

Method iframeLoaded

third_party/subscriptions-project/swg.js:15554–15560  ·  view source on GitHub ↗

* Called whenever the iframe is loaded.

()

Source from the content-addressed store, hash-verified

15552 * Called whenever the iframe is loaded.
15553 */
15554 static iframeLoaded() {
15555 iframeLoaded = true;
15556 buffer.forEach(function(data) {
15557 PayFrameHelper.postMessage(data);
15558 });
15559 buffer.length = 0;
15560 }
15561
15562 /**
15563 * Returns the events that have been buffered.

Callers 2

loadMethod · 0.80

Calls 2

forEachMethod · 0.45
postMessageMethod · 0.45

Tested by

no test coverage detected