Replies: 4 comments 1 reply
-
Hi @gmrchk
I'm not sure if swup needs to be initialized into the ready or not. Also, I need to destroy components before leaving any pages? Any advices are welcome! Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm having problems making it work in Blazor, does Swup support being used in a Blazor App? |
Beta Was this translation helpful? Give feedback.
-
I have this problem with my JS function. This is a timed function (https://pastebin.com/3Mpufyyn). First loading, everything ok. If, on the other hand, I change the page and return, despite having used swup: contentReplaced, the first function is still active and continues to go on, and in the meantime a new one begins. Do you have any solution about it? Thank you |
Beta Was this translation helpful? Give feedback.
-
i solved by the way in master page :
page.js contents, if you want reload any js for specific page just put it in block :
and in panel page i put this :
you can create js for each page |
Beta Was this translation helpful? Give feedback.
-
Reloading JavaScript is by far the most common issue people encounter when using swup. Unfortunately, that's just the nature of how swup and other similar libraries work, and there is no silver bullet for all the use cases. 😞
At the same time, there is simply no way for us to help out everyone, so we'd like to let the community help each other. If you're hitting these problems, this is the right place to post about them!
To get started, please check out our documentation on this topic with general information on how to structure code when using swup. Scripts plugin and Head plugin might also turn out helpful, but keep in mind that it's more of a "last resort solution".
Here is also a list of related issues, where some more helpful information could be found.
#31
#83
#98
#117
#132
#150
#166
#244
#245
#250
#274
#279
#288
#290
#292
#296
#326
Beta Was this translation helpful? Give feedback.
All reactions