From 6fc7f9a8dcd60d664179180329b48d38473ae68a Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Thu, 9 Apr 2020 23:39:59 +0200 Subject: [PATCH] Reverted async image loading error load, because it does not significantly improves the page loading speed and dosn't work for old browsers --- loader/app/loader/loader.ts | 10 ---------- shared/html/index.html.ejs | 3 +-- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/loader/app/loader/loader.ts b/loader/app/loader/loader.ts index 977824cb..ef6c3d98 100644 --- a/loader/app/loader/loader.ts +++ b/loader/app/loader/loader.ts @@ -374,13 +374,3 @@ export const templates = template_loader; clog("%c ", display_detect); } } - -/* Loading error image (async) */ -const init_error_image = () => { - const node = document.getElementById("load-error-image"); - const image = document.createElement("img"); - image.src = node.getAttribute("x-src"); - image.style.height = "12em"; - node.replaceWith(image); -}; -setTimeout(init_error_image, 100); \ No newline at end of file diff --git a/shared/html/index.html.ejs b/shared/html/index.html.ejs index 5d0c96a8..4095f9f2 100644 --- a/shared/html/index.html.ejs +++ b/shared/html/index.html.ejs @@ -144,8 +144,7 @@ var initial_css;
- -
+