MCPcopy Index your code
hub / github.com/ampproject/amphtml / whenContentIniLoad

Function whenContentIniLoad

src/ini-load.js:23–38  ·  view source on GitHub ↗
(
  elementOrAmpDoc,
  hostWin,
  rect,
  opt_prerenderableOnly
)

Source from the content-addressed store, hash-verified

21 * @return {!Promise}
22 */
23export function whenContentIniLoad(
24 elementOrAmpDoc,
25 hostWin,
26 rect,
27 opt_prerenderableOnly
28) {
29 if (INI_LOAD_INOB) {
30 return whenContentIniLoadInOb(elementOrAmpDoc, opt_prerenderableOnly);
31 }
32 return whenContentIniLoadMeasure(
33 elementOrAmpDoc,
34 hostWin,
35 rect,
36 opt_prerenderableOnly
37 );
38}
39
40/**
41 * A legacy way using direct measurement.

Callers 3

startRender_Method · 0.90
whenIniLoadedMethod · 0.90

Calls 2

whenContentIniLoadInObFunction · 0.85

Tested by

no test coverage detected