MCPcopy Create free account
hub / github.com/error311/FileRise / lazyLoadResumable

Function lazyLoadResumable

public/js/upload.js:490–496  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

488}
489
490function 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
499export function warmUpResumable() {

Callers 2

warmUpResumableFunction · 0.85
initResumableUploadFunction · 0.85

Calls 1

loadScriptOnceFunction · 0.70

Tested by

no test coverage detected