You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add htmx snippets to certain pages, but the events do not seem to be triggered.
The JS is loaded via a CDN and <script> tags in the page, and the htmx library is loaded. (I can do a htmx.logAll(); call to check what is fired)
Have ensured that - navigation.instant: false is set in the mkdocs.yml so that there is no dynamic DOM building happening, and have also tried issuing a manual htmx.process(document.body) in a DOMContentLoaded event.
Anyone else ever got this to work, or tips on what more to try?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to add htmx snippets to certain pages, but the events do not seem to be triggered.
The JS is loaded via a CDN and <script> tags in the page, and the htmx library is loaded. (I can do a htmx.logAll(); call to check what is fired)
Have ensured that - navigation.instant: false is set in the mkdocs.yml so that there is no dynamic DOM building happening, and have also tried issuing a manual
htmx.process(document.body)
in a DOMContentLoaded event.Anyone else ever got this to work, or tips on what more to try?
Beta Was this translation helpful? Give feedback.
All reactions