https://htmx.org logo
I came to like 1cg's idea of marking head elements...
# htmx-general
b
I came to like 1cg's idea of marking head elements as "to preserve". If you're able to do that, e.g.:
<script src="base.js" hx-preserve></script>
Then L47 here you should just be able to add a guard like
if (! currentHeadChild.hasAttribute('hx-preserve')) { ... do the removal ...}