Skip to content

Really need help with scripts #547

Answered by daun
Grinchcreator asked this question in Help
Discussion options

You must be logged in to vote

I think you should read the linked docs page again. There's example code for your exact use case. You'll need to listen for swup's contentReplaced event and initialize any new components in the new content whenever that event fires.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by daun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #542 on December 14, 2022 10:42.