I have a static HTML page with 4000+ latex equation (inline and display) and rendering takes about 2 to 3 minutes. To repllicate my problem I copied the content of MathJax sample.html file and created about 4000 equations (attached huge.html).
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
//skipStartupTypeset: true, //Working
extensions: ["tex2jax.js"],
MAXBUFFER:8*1024,
jax: ["input/TeX","output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
},
"HTML-CSS": {
availableFonts: [],
linebreaks: { automatic:true ,width: "52% container" },
EqnChunk: 20,
EqnChunkFactor: 1.5,
EqnChunkDelay: 200
}
});
</script>
Kindly point me to the best practice in loading equtions that are visible or allow users to contine reading and do the math typeset at the background.