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

Function addToQueue

ads/vendors/rbinfox.js:42–52  ·  view source on GitHub ↗

* @param {!Window} global * @param {string} src

(global, src)

Source from the content-addressed store, hash-verified

40 * @param {string} src
41 */
42function addToQueue(global, src) {
43 const blockId = getBlockId(src);
44 const ctx = n + blockId;
45 global[ctx] = global[ctx] || [];
46 global[ctx].push(() => {
47 const renderTo = 'infox_' + blockId;
48 // Create container
49 createContainer(global, renderTo);
50 global['INFOX' + blockId].renderTo(renderTo);
51 });
52}

Callers 1

rbinfoxFunction · 0.70

Calls 3

getBlockIdFunction · 0.70
createContainerFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected