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

Function chunk

src/chunk.js:81–88  ·  view source on GitHub ↗
(elementOrAmpDoc, fn, priority)

Source from the content-addressed store, hash-verified

79 * @param {ChunkPriority_Enum} priority
80 */
81export function chunk(elementOrAmpDoc, fn, priority) {
82 if (deactivated) {
83 resolved.then(fn);
84 return;
85 }
86 const service = chunkServiceForDoc(elementOrAmpDoc);
87 service.run(fn, priority);
88}
89
90/**
91 * @param {!Element|!./service/ampdoc-impl.AmpDoc} elementOrAmpDoc

Callers 12

buildCallbackMethod · 0.90
buildCallbackMethod · 0.90
addTriggerMethod · 0.90
writeMethod · 0.90
ensureInitialized_Method · 0.90
initializeLinker_Method · 0.90
isSampledIn_Method · 0.90
chunktionMethod · 0.90
scanNode_Method · 0.90
onDomUpdatedMethod · 0.90

Calls 3

chunkServiceForDocFunction · 0.85
thenMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected