htmx
htmx copied to clipboard
Js action is not working for swapped reponse.
Hi There, I loaded my js inside
tag and I put deffer attr. Still not affecting the js to the response, like the accordion code I wrote inside my script.
*defer attr
Without any details or code it's impossible to say what is going on. What does the debugger of your browser say? Are there any messages in the console?
Nothing on my console, at the initial load of my webpage all js functionality will work like accordion, modal , offcanvas and so on... when htmx swap happen in any element and the element containing any modal or accordion then it will not work. when I load js on head tag with defer attribute except accoridion all will work.