I've a web page that renders latex equations using mathjax. In order to load the equations faster, i'm trying to avoid the preprocessing step, by replacing the
math delimiters by <span class="MathJax_Preview">[loading...]</span><script type="math/tex;"> latex equation here </script>
But the problem is; while rendering, the html entities that comes within the equation are shown as such and hence the equations are not rendered properly.For eg, '&' is used for alignment of multiple steps. But it is displayed as &
Replacing the math delimiters by <script> tag is done dynamically. If i remove this step, then the said issue is not there and html entities within equation are rendered properly.
How can i solve this?
My ultimate objective is to make the equation load faster. Show a preloder like [loading...] until the maths is typeset fully.
Thanks,
LS Developer