Getting a "Loading [MathJax]/extensions/MathZoom.js" message even when there's no mathml on the page.

896 views
Skip to first unread message

kylesch...@gmail.com

unread,
Jul 10, 2013, 2:43:01 PM7/10/13
to mathja...@googlegroups.com
Whenever a page loads that includes MathJax, but doesn't have any math on it, I'm still getting a "Loading [MathJax]/extensions/MathZoom.js" message.

I'm using a custom config.js file that looks like this:

MathJax.Hub.Config({
    jax: ["input/MathML","output/HTML-CSS"],
extensions: ["mml2jax.js","MathMenu.js", "MathZoom.js"],
"HTML-CSS": {
imageFont: null
},
MathMenu: {
showLocale: false,
showRenderer: false
},
});

MathJax.Ajax.loadComplete("[MathJax]/config/standard.js");

And I'm referencing it in my HTML like this:

<script type="text/javascript" src="mathjax/MathJax.js?config=standard"></script>

If I switch to using an out-of-the-box config, I don't see the message. Any idea what's going on? Alternatively, is there a supported method to suppress the "Loading" messages but not the "Processing" and "Typesetting" messages? 


Davide P. Cervone

unread,
Jul 14, 2013, 9:43:30 AM7/14/13
to mathja...@googlegroups.com
Since you have included MathZoom.js in your extensions array, that file will be loaded when MathJax is loaded, regardless of whether there are MathML expressions on the page or not. Since it will be the last file loaded, it's message is the last one to show, and so will be the one you see on screen.

When you use the combined configuration files, these already include MathZoom.js, and so that file doesn't have to be loaded separately, so you don't see a message about it. But it is still loaded, since it is part of the combined configuration file.

Davide

Reply all
Reply to author
Forward
0 new messages