For my own scripts, adding the astro:after-swap event listener works. But what do i do to re-run scripts sourced externally from a CDN?
For example, I have this MathJax script import within my base layout:
<script
id="MathJax-script"
async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
is:inline
data-astro-rerun
></script>
The script doesn't run when i load the pages containing math expressions. I have to do a manual refresh and then the math expressions are rendered