I’m very new to the world of Discourse so please bear with me if this is a question that has been answered a million times.
I’ve created a script that needs to run each time the user navigates to the homepage or the categories page. Currently I am attempting to run it through the Customize > HTML/CSS > Head using
<script> tags. I check for DOM load completion, but it looks like Discourse has a very unique way of loading pages as you navigate around the forum.
Refreshing the categories page executes the script, but after navigating to another page, then back to the categories, the script fails to run.
I’ve tried creating a plugin to see if it would work better that way (I got the example alert() plugin working, woo!), but I just don’t quite understand how to utilize everything that’s available.
Any suggestions on how to get a script to run each time I navigate to the categories page?
If you need more information to understand what I’m asking for, please let me know. Sometimes my wording makes sense to me, but not to everyone else!