Thank you for your response
@mysterious-toddler-20573.
We want to prepare some plugins for the Astro framework for nice integration with HTMX. This functionality is absolutely critical.
What do you see as the biggest risk/problem for implementing CSS/JS integration in
?
One of the possible implementations that came to my mind is to implement an HTMX extension, which would check, as part of the content replacement, whether there are any
,
or
tags in the new HTML (retrieved by Ajax) that have not yet been inserted in our page and if not, create these tags at the end of the HTML and add them to the DOM.
In order to be able to effectively verify whether the given script (either inline or external via the src attribute) has already been inserted into the HTML, we would add some special HTML element with the ID "htmx-extras" as the last element in the
. What do you think about this solution?