I have installed MathJax using the following scripts:
- Custom HTML in <head> section of every page
<script type="text/javascript" src="
http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
- Custom HTML at top of every page
<script type="text/x-mathjax-config"> MathJax.Hub.Config({ extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"], tex2jax: {inlineMath: [['$','$'],['\\(','\\)']]},
TeX: { extensions: ["AMSmath.js","AMSsymbols.js"]} }); </script>
This works fine for one question. However, if answers and comments are displayed on the same page, MathJax compiles inline math using the delimiter $ only after reloading the page manually in the browser.
Is there a way to trigger MathJax to compile on first time loading of the page?