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

Method runForStartup

src/chunk.js:355–358  ·  view source on GitHub ↗

* Run a fn that's part of AMP's startup sequence as a "chunk". * @param {function(?IdleDeadline)} fn

(fn)

Source from the content-addressed store, hash-verified

353 * @param {function(?IdleDeadline)} fn
354 */
355 runForStartup(fn) {
356 const t = new StartupTask(fn, this.win_, this);
357 this.enqueueTask_(t, Number.POSITIVE_INFINITY);
358 }
359
360 /**
361 * Queues a task to be executed later with given priority.

Callers 1

startupChunkFunction · 0.80

Calls 1

enqueueTask_Method · 0.95

Tested by

no test coverage detected