Disable preloading and boosting
This commit is contained in:
parent
f6929c47cd
commit
7e298a0d2e
5 changed files with 7 additions and 16 deletions
src
|
@ -8,7 +8,7 @@
|
||||||
(:import-from #:clack-errors
|
(:import-from #:clack-errors
|
||||||
#:*clack-error-middleware*)
|
#:*clack-error-middleware*)
|
||||||
(:import-from #:website/lib/env
|
(:import-from #:website/lib/env
|
||||||
#:website-env)
|
#:dev-mode-p)
|
||||||
(:import-from #:website/renderer)
|
(:import-from #:website/renderer)
|
||||||
(:export #:*app*))
|
(:export #:*app*))
|
||||||
(in-package #:website/app)
|
(in-package #:website/app)
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
(install-middleware app (lambda (app)
|
(install-middleware app (lambda (app)
|
||||||
(funcall *clack-error-middleware*
|
(funcall *clack-error-middleware*
|
||||||
app
|
app
|
||||||
:debug (string= (website-env) "dev"))))
|
:debug (dev-mode-p))))
|
||||||
(install-middleware app *trim-trailing-slash*)
|
(install-middleware app *trim-trailing-slash*)
|
||||||
(static-path app "/assets/" "assets/")
|
(static-path app "/assets/" "assets/")
|
||||||
(configure app)))
|
(configure app)))
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
(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"
|
||||||
(p :class "z-20 text-3xl font-bold"
|
(p :class "z-20 text-3xl font-bold"
|
||||||
(a :preload "mouseover" :href "/" "skyizwhite"))
|
(a :href "/" "skyizwhite"))
|
||||||
(nav :class "flex items-end"
|
(nav :class "flex items-end"
|
||||||
(ul :preload "mouseover" :class "flex gap-4 text-xl font-bold"
|
(ul :class "flex gap-4 text-xl font-bold"
|
||||||
(loop
|
(loop
|
||||||
:for (href label) :in *pc-menu* :collect
|
:for (href label) :in *pc-menu* :collect
|
||||||
(if (string= href (request-uri *request*))
|
(if (string= href (request-uri *request*))
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
:x-data "{ open: false }"
|
: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"
|
||||||
(p :class "z-20 text-2xl font-bold"
|
(p :class "z-20 text-2xl font-bold"
|
||||||
(a :preload "mousedown" :href "/" "skyizwhite"))
|
(a :href "/" "skyizwhite"))
|
||||||
(div
|
(div
|
||||||
(button
|
(button
|
||||||
:aria-label "Open menu"
|
:aria-label "Open menu"
|
||||||
|
@ -58,9 +58,7 @@
|
||||||
:|x-transition:leave.duration.300ms| t
|
:|x-transition:leave.duration.300ms| t
|
||||||
(h2 :class "text-5xl font-bold"
|
(h2 :class "text-5xl font-bold"
|
||||||
"Menu")
|
"Menu")
|
||||||
(ul
|
(ul :class "flex flex-col h-fit gap-8 text-3xl font-bold"
|
||||||
:preload "mousedown"
|
|
||||||
:class "flex flex-col h-fit gap-8 text-3xl font-bold"
|
|
||||||
(loop
|
(loop
|
||||||
:for (href label) :in *sp-menu* :collect
|
:for (href label) :in *sp-menu* :collect
|
||||||
(if (string= href (request-uri *request*))
|
(if (string= href (request-uri *request*))
|
||||||
|
|
|
@ -24,7 +24,4 @@
|
||||||
(noscript
|
(noscript
|
||||||
(link :rel "stylesheet" :href *google-font-url*))
|
(link :rel "stylesheet" :href *google-font-url*))
|
||||||
(script :src "https://cdn.jsdelivr.net/npm/htmx.org@2.0.4/dist/htmx.min.js")
|
(script :src "https://cdn.jsdelivr.net/npm/htmx.org@2.0.4/dist/htmx.min.js")
|
||||||
(script :src "https://cdn.jsdelivr.net/npm/htmx-ext-preload@2.1.1/dist/preload.min.js")
|
|
||||||
(script :src "https://cdn.jsdelivr.net/npm/htmx-ext-head-support@2.0.4/dist/head-support.min.js")
|
|
||||||
(script :src "https://cdn.jsdelivr.net/npm/htmx-ext-response-targets@2.0.3/dist/response-targets.min.js")
|
|
||||||
(script :src "https://cdn.jsdelivr.net/npm/alpinejs@3.14.9/dist/cdn.min.js" :defer t))))
|
(script :src "https://cdn.jsdelivr.net/npm/alpinejs@3.14.9/dist/cdn.min.js" :defer t))))
|
||||||
|
|
|
@ -33,8 +33,4 @@
|
||||||
(~metadata :metadata (context :metadata))
|
(~metadata :metadata (context :metadata))
|
||||||
(~scripts))
|
(~scripts))
|
||||||
(body
|
(body
|
||||||
:hx-ext (clsx "head-support, response-targets,"
|
|
||||||
(and (not (dev-mode-p)) "preload"))
|
|
||||||
:hx-boost "true" :hx-swap "transition:true"
|
|
||||||
:hx-target-404 "body" :hx-target-5* "body"
|
|
||||||
(~layout result)))))))))
|
(~layout result)))))))))
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
(section
|
(section
|
||||||
(h1 :class "font-bold text-4xl mb-8"
|
(h1 :class "font-bold text-4xl mb-8"
|
||||||
"Blog")
|
"Blog")
|
||||||
(ul :preload "mouseover" :class "flex flex-col gap-y-2"
|
(ul :class "flex flex-col gap-y-2"
|
||||||
(loop
|
(loop
|
||||||
:for item :in blogs :collect
|
:for item :in blogs :collect
|
||||||
(hsx
|
(hsx
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue