()
| 488 | } |
| 489 | |
| 490 | function lazyLoadResumable() { |
| 491 | if (window.Resumable) return Promise.resolve(window.Resumable); |
| 492 | if (!_resumableLoadPromise) { |
| 493 | _resumableLoadPromise = loadScriptOnce(RESUMABLE_SRC).then(() => window.Resumable); |
| 494 | } |
| 495 | return _resumableLoadPromise; |
| 496 | } |
| 497 | |
| 498 | // Optional: let main.js prefetch it in the background |
| 499 | export function warmUpResumable() { |
no test coverage detected