Enable preload
This commit is contained in:
parent
f6213db78a
commit
4e769339ca
2 changed files with 3 additions and 3 deletions
src
|
@ -14,7 +14,7 @@
|
||||||
(hsx
|
(hsx
|
||||||
(header :class "hidden md:flex justify-between py-4 border-b-1 top-0 bg-white"
|
(header :class "hidden md:flex justify-between py-4 border-b-1 top-0 bg-white"
|
||||||
(h1 :class "z-20 text-3xl font-bold"
|
(h1 :class "z-20 text-3xl font-bold"
|
||||||
(a :href "/" "skyizwhite"))
|
(a :preload "mouseover" :href "/" "skyizwhite"))
|
||||||
(nav :class "flex items-end"
|
(nav :class "flex items-end"
|
||||||
(ul :preload "mouseover" :class "flex gap-4 text-xl font-medium"
|
(ul :preload "mouseover" :class "flex gap-4 text-xl font-medium"
|
||||||
(loop
|
(loop
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
:id "sp-header" :x-data "{ open: false }"
|
:id "sp-header" :x-data "{ open: false }"
|
||||||
:class "flex md:hidden justify-between py-2 border-b-1 top-0 bg-white"
|
:class "flex md:hidden justify-between py-2 border-b-1 top-0 bg-white"
|
||||||
(h1 :class "z-20 text-2xl font-bold"
|
(h1 :class "z-20 text-2xl font-bold"
|
||||||
(a :href "/" "skyizwhite"))
|
(a :preload "mousedown" :href "/" "skyizwhite"))
|
||||||
(div
|
(div
|
||||||
(button
|
(button
|
||||||
:class "z-20 size-8 flex flex-col justify-center cursor-pointer relative"
|
:class "z-20 size-8 flex flex-col justify-center cursor-pointer relative"
|
||||||
|
|
|
@ -27,6 +27,6 @@
|
||||||
(~metadata :metadata (context :metadata))
|
(~metadata :metadata (context :metadata))
|
||||||
(~scripts))
|
(~scripts))
|
||||||
(body
|
(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"
|
:hx-boost "true" :hx-target-404 "body" :hx-target-5* "body"
|
||||||
(~layout result)))))))
|
(~layout result)))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue