* Run a fn that's part of AMP's startup sequence as a "chunk". * @param {function(?IdleDeadline)} fn
(fn)
| 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. |
no test coverage detected