The goog.net.MultiIframeLoadMonitor Class

goog.net.MultiIframeLoadMonitor(iframes, callback, opt_hasContent)

Provides a wrapper around IframeLoadMonitor, to allow the caller to wait for multiple iframes to load.

iframes {Array.<HTMLIFrameElement>}
Array of iframe elements to wait until they are loaded.
callback {function():void}
The callback to invoke once the frames have loaded.
opt_hasContent {boolean=}
true if the monitor should wait until the iframes have content (body.firstChild != null).

.handleEvent(e)

Handles a pending iframe load monitor load event.

e {goog.events.Event}
The goog.net.IframeLoadMonitor.LOAD_EVENT event.

.stopMonitoring()

Stops monitoring the iframes, cleaning up any associated resources. In general, the object cleans up its own resources before invoking the callback, so this API should only be used if the caller wants to stop the monitoring before the iframes are loaded (for example, if the caller is implementing a timeout).