I'm sorry but I'm going to revert this. This creates a direct dependency from JSAV to MathJax, which doesn't really make sense to me.
The least that needs to be done is to prepend the lines with check for MathJax existing in window (so adding something like window.MathJax && in the beginning).
But overall I'd like to better understand what's the issue to come up with a better solution.
I'm sorry but I'm going to revert this. This creates a direct dependency from JSAV to MathJax, which doesn't really make sense to me.
The least that needs to be done is to prepend the lines with check for
MathJax
existing inwindow
(so adding something likewindow.MathJax &&
in the beginning).But overall I'd like to better understand what's the issue to come up with a better solution.