diff --git a/loader/app/loader/ScriptLoader.ts b/loader/app/loader/ScriptLoader.ts index 6271d7e2..6f336c5e 100644 --- a/loader/app/loader/ScriptLoader.ts +++ b/loader/app/loader/ScriptLoader.ts @@ -44,7 +44,7 @@ export function loadScript(url: SourcePath) : Promise { } scriptTag.src = config.baseUrl + url; - document.getElementById("scripts").appendChild(scriptTag); + document.body.appendChild(scriptTag); resourceRequest.markExecuting(); }); } diff --git a/loader/app/loader/StyleLoader.ts b/loader/app/loader/StyleLoader.ts index 3e0b1646..39824e9c 100644 --- a/loader/app/loader/StyleLoader.ts +++ b/loader/app/loader/StyleLoader.ts @@ -45,7 +45,7 @@ export function loadStyle(path: SourcePath) : Promise { resolve(); }; - document.getElementById("style").appendChild(linkTag); + document.head.appendChild(linkTag); resourceRequest.markExecuting(); }); } diff --git a/loader/app/loader/loader.ts b/loader/app/loader/loader.ts index 4e28f016..535f2df1 100644 --- a/loader/app/loader/loader.ts +++ b/loader/app/loader/loader.ts @@ -156,6 +156,11 @@ export async function execute(customLoadingAnimations: boolean) { return; } + /* Cleanup