Feedback on "on-discourse" javascript for setting up custom JS for each page?

This is what you need How do you force a script to refire on every page load in Discourse? - #5 by simon

<script type="text/discourse-plugin" version="0.8">
    api.onPageChange(() =>{
        // code
    });
</script>
3 Likes