https://htmx.org logo
You can preserve elements in the head by: 1 - mar...
# htmx-general
m
You can preserve elements in the head by: 1 - marking them as
hx-preserve="true"
2 - catching the
htmx:removingHeadElement
event and calling
preventDefault()
3 - annotating the new
head
element with
hx-swap-oob="beforeend"