I'm using a local distribution of MathJax (both 2.3 final and 2.4 beta).
It works well and really fast as long as I don't add a local configuration file.
<html>
<head>
<title>SVGTEX</title>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
showProcessingMessages: true,
messageStyle: "normal",
tex2jax: {
inlineMath: [["$", "$"], ["\\(", "\\)"]]
},
SVG: {
linebreaks: {
automatic: true,
width: "container"
},
blacker: 0.1,
}
});
</script>
<script type="text/javascript" src="../MathJax/MathJax.js?config=TeX-AMS-MML_SVG,local/font"></script>
</head>
<body>
<h1>svgtex bench file</h1>
<p>TeX equation:</p>
<div id="math-tex">${\frac{x}{2}}$</div>
<p>MathML equation:</p>
<div id="math-mml">
<math>
<mfrac>
<mi>y</mi>
<mn>2</mn>
</mfrac>
</math>
</div>
</body>
</html>
This is the referenced file MathJax/config/local/font.js:
MathJax.Hub.Config({SVG:{font:"TeX"}});
So nothing fancy. If I include the SVG font option in the main file, the processing is fast and normal, but in an extra file, it takes about 15 seconds, as you can see on the following screenshot:
https://lh4.googleusercontent.com/-Ip43tIsa8bY/U3uvSRfT8-I/AAAAAAAAAF4/fI1r4IH9lCE/s1600/laufzeit.pngI first suspected the relative paths might be of, but the config file is found in about 1 ms, and then the processing seems to stop (or run in loops or whatever) for 15 seconds.
I'm really not sure what's causing this.
Can anybody please help me with this or point me in a direction to search for errors?
Best regards,
Nikolai Neff