FIX: Every bit of JS/CSS is asynchonously loaded in.

This commit is contained in:
MajorDroolz
2022-12-18 03:16:39 -05:00
parent 20a88a0a24
commit 568b7303c7
2 changed files with 6 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" bgcolor="black">
<head>
<title>Resume of Maxim Voldman Hutz</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -32,10 +32,10 @@
<link rel="preload" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css" as="style">
<!-- Resume styling. -->
<link rel="stylesheet" type="text/css" href="index.css">
<link rel="preload" href="index.css" as="style">
</head>
<body>
<body hidden>
<nav class="navbar">
<header class="resume-header">Resume</header>
</nav>

View File

@@ -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");
}