Tweaked the loading options a bit

canary
WolverinDEV 2020-08-21 00:08:13 +02:00
parent 9189fc20a6
commit 8bea16172d
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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;