FIX: Every bit of JS/CSS is asynchonously loaded in.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en" bgcolor="black">
|
||||||
<head>
|
<head>
|
||||||
<title>Resume of Maxim Voldman Hutz</title>
|
<title>Resume of Maxim Voldman Hutz</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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">
|
<link rel="preload" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css" as="style">
|
||||||
|
|
||||||
<!-- Resume styling. -->
|
<!-- Resume styling. -->
|
||||||
<link rel="stylesheet" type="text/css" href="index.css">
|
<link rel="preload" href="index.css" as="style">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body hidden>
|
||||||
<nav class="navbar">
|
<nav class="navbar">
|
||||||
<header class="resume-header">Resume</header>
|
<header class="resume-header">Resume</header>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
window.onload = function () {
|
window.onload = () => {
|
||||||
const links = document.querySelectorAll('link[rel="preload"]');
|
const links = document.querySelectorAll('link[rel="preload"]');
|
||||||
for (const link of links) {
|
for (const link of links) link.rel = 'stylesheet';
|
||||||
link.rel = 'stylesheet';
|
document.body.removeAttribute("hidden");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user