Improve loading Google Fonts

This commit is contained in:
Akira Tempaku 2025-06-18 08:21:36 +09:00
parent 7f5a9187cc
commit 63d7932890
Signed by: paku
GPG key ID: 5B4E8402BCC50607

View file

@ -14,13 +14,18 @@
(hsx
(<>
(link :rel "stylesheet" :href (bust-cache "/assets/style/dist.css"))
(link :rel "preconnect" :href "https://fonts.gstatic.com" :crossorigin t)
(link :rel "preconnect" :href "https://fonts.googleapis.com")
(link :rel "preconnect" :href "https://fonts.gstatic.com" :crossorigin t)
(link
:rel "preload"
:href *google-font-url*
:as "style"
:onload "this.onload=null;this.rel='stylesheet'")
:fetchpriority "high"
:href *google-font-url*)
(link
:rel "stylesheet"
:href *google-font-url*
:media "print"
:onload "this.media='all'")
(noscript
(link :rel "stylesheet" :href *google-font-url*))
;(script :src "https://cdn.jsdelivr.net/npm/htmx.org@2.0.4/dist/htmx.min.js")