Enable preload

This commit is contained in:
Akira Tempaku 2025-05-04 01:35:09 +09:00
parent f6213db78a
commit 4e769339ca
Signed by: paku
GPG key ID: 5B4E8402BCC50607
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@
(hsx
(header :class "hidden md:flex justify-between py-4 border-b-1 top-0 bg-white"
(h1 :class "z-20 text-3xl font-bold"
(a :href "/" "skyizwhite"))
(a :preload "mouseover" :href "/" "skyizwhite"))
(nav :class "flex items-end"
(ul :preload "mouseover" :class "flex gap-4 text-xl font-medium"
(loop
@ -29,7 +29,7 @@
:id "sp-header" :x-data "{ open: false }"
:class "flex md:hidden justify-between py-2 border-b-1 top-0 bg-white"
(h1 :class "z-20 text-2xl font-bold"
(a :href "/" "skyizwhite"))
(a :preload "mousedown" :href "/" "skyizwhite"))
(div
(button
:class "z-20 size-8 flex flex-col justify-center cursor-pointer relative"

View file

@ -27,6 +27,6 @@
(~metadata :metadata (context :metadata))
(~scripts))
(body
:hx-ext "head-support, response-targets"
:hx-ext "head-support, response-targets, preload"
:hx-boost "true" :hx-target-404 "body" :hx-target-5* "body"
(~layout result)))))))