I'm excited to work together! Say hi to drsimone.pulvirenti@gmail.com https://www.linkedin.com/in/simonepulvirenti/
Here's your script properly formatted:
html
Yes! That's likely the reason. In a Single Page App (SPA), when you navigate between routes, the JavaScript doesn't reload, but the DOM elements change. The script needs to re-run when the page/route changes.
Try this updated script that works with SPAs:
html