Tweaked the loading options a bit
parent
9189fc20a6
commit
8bea16172d
|
@ -1,6 +1,5 @@
|
|||
import {config, critical_error, SourcePath} from "./loader";
|
||||
import {load_parallel, LoadCallback, LoadSyntaxError, ParallelOptions, script_name} from "./utils";
|
||||
import {type} from "os";
|
||||
|
||||
let _script_promises: {[key: string]: Promise<void>} = {};
|
||||
|
||||
|
@ -34,7 +33,7 @@ function load_script_url(url: string) : Promise<void> {
|
|||
const timeout_handle = setTimeout(() => {
|
||||
cleanup();
|
||||
reject("timeout");
|
||||
}, 5000);
|
||||
}, 10 * 1000);
|
||||
script_tag.type = "application/javascript";
|
||||
script_tag.async = true;
|
||||
script_tag.defer = true;
|
||||
|
|
|
@ -54,7 +54,7 @@ export async function loadManifestTarget(chunkName: string, taskId: number) {
|
|||
|
||||
await loader.scripts.load_multiple(manifest.chunks[chunkName].files.map(e => "js/" + e.file), {
|
||||
cache_tag: undefined,
|
||||
max_parallel_requests: -1
|
||||
max_parallel_requests: 4
|
||||
}, (script, state) => {
|
||||
if(state !== "loading")
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue