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

Function isDocumentComplete

src/core/document/ready.js:21–23  ·  view source on GitHub ↗

* Whether the document has loaded all the css and sub-resources. * @param {Document} doc * @return {boolean}

(doc)

Source from the content-addressed store, hash-verified

19 * @return {boolean}
20 */
21function isDocumentComplete(doc) {
22 return doc.readyState == ReadyState_Enum.COMPLETE;
23}
24
25/**
26 * Calls the callback when document is ready.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected