https://htmx.org logo
If the script to register it is in the `body` of y...
# htmx-general
l
If the script to register it is in the
body
of your returned payload, it'll be run each time the response is entered. You may also be able to work around that by putting the call in an external file, then referencing that file in the
head
instead; it isn't re-executed when htmx gets a response.