improve loading time;improve unstyled content flash

This commit is contained in:
2025-05-11 20:35:43 -07:00
parent b620a80819
commit e0e86e964c
2 changed files with 8 additions and 2 deletions

View File

@ -37,7 +37,7 @@
--visited-link: #be95ff;
--highlight: #33b1ff;
background: url('/assets/bg.svg');
background: #202020 url('/assets/bg.svg');
background-size: 30px;
display: flex;
align-items: center;

View File

@ -11,8 +11,14 @@
(run "echo > /tmp/footnote_count")
`(html (:lang "en")
(head ()
(style #[[
:root {
background: #202020;
}
body {display: none}]])
(link (:rel preload :href "/assets/style.css" :as style))
(link (:rel preload :href "/assets/bg.svg" :as image))
(link (:rel "stylesheet" :href "/assets/style.css" :type "text/css"))
(link (:rel preload :href "/assets/style.css"))
(meta (:http-equiv "content-type" :content "text/html; charset=utf-8"))
(meta (:name "viewport" :content "width=device-width, initial-scale=1"))
(meta (:name "author" :content ~author))