Peter, I think that may not be the case, here. There are two bottlenecks for MathJax: one is the actual rendering, but the other is downloading the needed components and fonts. The fact that the first page loads slowly and the later ones quickly suggests that the initialing loading of components is an important factor here. Since the configuration does not use a combined configuration file, each component is requested and served separately; switching to a combined configuration file should help that (but not eliminate the delay entirely, of course, since the components do need to be fetched).
Stephen, your default configuration seems to change only the following values:
jax: ["input/TeX","output/HTML-CSS"],
extensions: ["jsMath2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js", "TeX/bbox.js"],
skipStartupTypeset: true,
styles: {".MathJax_Display": {display: "table"}}
so this could easily be included in-line, or as a separate file like you are using now (only smaller). Better yet would be to use a combined configuration file that specifies TeX input and HTML output (like TeX-AMS_HTML) and include only the changes from that. That would give you the reduced number of file requests while still getting your desired configuration. I see that you are using the jsMath2jax extension; none of the combined configuration files include that (since it was meant only as a transition to allow you to move from jsMath to MathJax, not as a permanent component), so you would need to load that in the extensions array. All the TeX-based combined configuration files use tex2jax, so you might need to disable that as part of your configuration as well. Finally, note also that the bbox extension is loaded automatically when it is used, so there is no need to include it explicitly, and the AMS extensions are included in all the combined configurations, so there is not need to list them either. So I'd recommend something like the following:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["jsMath2jax.js"],
skipStartupTypeset: true,
showMathMenu: false,
showMathMenuMSIE: false,
"HTML-CSS": {
preferredFont: "STIX",
webFont: "TeX",
imageFont: null,
styles: {".MathJax_Display": {display: "table"}}
},
MathMenu: {
showRenderer: false,
showMathPlayer: false,
CHTMLpreview: false
},
MathEvents: {
hover: 0
},
tex2jax: {
inlineMath: [],
displayMath: [],
processEscapes: false,
processEnvironments: false,
processRefs: false
}
});
</script>
I've added the code to disable tex2jax, and also the Fast Preview option (since you are rendering behind the scenes then showing the page, there is no need for the preview.
Again, you cold put the new configuration into your own file as you do now (though that is an additional file request). You already have some in-line configuration in your pages, so you could combined that with what I list here as well.
I think if you use this approach, your initial pages will be a little faster.
Good luck.
Davide