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

Function chunkServiceForDoc

src/chunk.js:35–38  ·  view source on GitHub ↗

* @param {!Element|!ShadowRoot|!./service/ampdoc-impl.AmpDoc} elementOrAmpDoc * @return {!Chunks} * @private

(elementOrAmpDoc)

Source from the content-addressed store, hash-verified

33 * @private
34 */
35function chunkServiceForDoc(elementOrAmpDoc) {
36 registerServiceBuilderForDoc(elementOrAmpDoc, 'chunk', Chunks);
37 return getServiceForDoc(elementOrAmpDoc, 'chunk');
38}
39
40/**
41 * Run the given function. For visible documents the function will be

Callers 3

startupChunkFunction · 0.85
chunkFunction · 0.85
chunkInstanceForTestingFunction · 0.85

Calls 2

getServiceForDocFunction · 0.90

Tested by

no test coverage detected