Page refresh needed to load external scripts properly

Hey guys

I’m working on a client project and I use some external JS script, which i load on to certain pages by add in the script url before the closing body tag (as well as two libraries in the head of the page). The problem is, that the script only loads properly, when I manually refresh the page, by changing the page the scripts aren’t loaded properly. Is this an expected behavior? In another project, I implemented something similar but there the script always loaded without any problem…

Was there something changed in the last 1.5 months in regards to the SPA or the PWA?

How could i resolve this easily? I’m tetsing an approach of using the window.location.reload(true); browser function… which also has some issues…

Hi, did you attach the script on app or on page ? On page are only loaded when the page is the first page to be loaded, its a limitation we have, we encourage people to mostly add custom script on app and not on page, we will probably deprecate custom code on page in the near future and provide an alternative solution, like an action to execute on page load for example