Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ampproject/amphtml
/ whenDocumentComplete
Function
whenDocumentComplete
src/core/document/ready.js:74–78 ·
view source on GitHub ↗
(doc)
Source
from the content-addressed store, hash-verified
72
* @
return
{Promise<Document>}
73
*/
74
export
function
whenDocumentComplete(doc) {
75
return
new
Promise((resolve) => {
76
onDocumentState(doc, isDocumentComplete, resolve);
77
});
78
}
Callers
5
test-ready.js
File · 0.90
bootstrap
Function · 0.90
preconnectToOrigin
Function · 0.90
constructor
Method · 0.90
getTimingDataAsync
Function · 0.90
Calls
1
onDocumentState
Function · 0.70
Tested by
no test coverage detected