From 568b7303c7c2370c08152d52f6d6c41031f9d567 Mon Sep 17 00:00:00 2001 From: MajorDroolz Date: Sun, 18 Dec 2022 03:16:39 -0500 Subject: [PATCH] FIX: Every bit of JS/CSS is asynchonously loaded in. --- resume/index.html | 6 +++--- resume/index.js | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/resume/index.html b/resume/index.html index 8df4860..361fefb 100644 --- a/resume/index.html +++ b/resume/index.html @@ -1,5 +1,5 @@ - + Resume of Maxim Voldman Hutz @@ -32,10 +32,10 @@ - + - + diff --git a/resume/index.js b/resume/index.js index 0e9a02a..8c3b533 100644 --- a/resume/index.js +++ b/resume/index.js @@ -1,6 +1,5 @@ -window.onload = function () { +window.onload = () => { const links = document.querySelectorAll('link[rel="preload"]'); - for (const link of links) { - link.rel = 'stylesheet'; - } + for (const link of links) link.rel = 'stylesheet'; + document.body.removeAttribute("hidden"); } \ No newline at end of file