From 3ceaeddc4052a006fcaf5e9310d2e2f76f0cffb5 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Sun, 25 Jun 2023 20:44:43 -0700 Subject: [PATCH] :memo: Added css defer --- scripts/html5 | 2 ++ scripts/pug5 | 3 +++ 2 files changed, 5 insertions(+) diff --git a/scripts/html5 b/scripts/html5 index c166d609..29da2cd7 100755 --- a/scripts/html5 +++ b/scripts/html5 @@ -11,6 +11,8 @@ cat <name="description" content=""> + + diff --git a/scripts/pug5 b/scripts/pug5 index aeef057a..62c6b30b 100755 --- a/scripts/pug5 +++ b/scripts/pug5 @@ -11,6 +11,9 @@ html(lang = "en") meta(name="description" content="") link(rel="icon" type="image/x-icon" href="favicon.png") link(rel="stylesheet" type="text/css" href="css/style.css") + link(rel="preload" href="css/style.css" as="style" onload="this.onload=null;this.rel='stylesheet'") + noscript + link(rel="stylesheet" href="css/style.css") body script(src="./index.js" default) EOM \ No newline at end of file