Dealing with duplicate event listeners? #2874
Unanswered
raysuelzer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
htmx.onLoad is called whenever content is loaded. What is the recommended approach to ensuring you aren't adding a ton of event listeners that are never disposed (as in the case in the sortable example)? Also, I have page that have inline javascript that uses htmx.onLoad... This adds the same event listener on each page navigation, should we not inline javascript at all?
Beta Was this translation helpful? Give feedback.
All reactions