> While refreshing the browser it echoes message#1 followed, after few seconds, by message#2:
>
> message #1: "Loading web-font Tex/Math/Bolditalic"
> message #2: "Can't load web font Tex/Math/Bolditalic"
>
> There is no problem with the page itself except that it displays the mathjax equations with significant delay.
>
> Happens only with Chrome and only with Bolditalic.
>
> Are you familiar with this or have a recommendation to prevent this message ?
The problem appears to be a bug in Chrome 32.
When a bold or italic font is requested, if that weight or style is not available, the browser may generate the bold or italic version algorithmically from the normal version of the font. In the case of a web font, that may be replaced by the actual font when it arrives. But the sizes of the characters in the actual bold or italic version of the font may not correspond to the algorithmic one, so MathJax needs to be able to recognize the difference between the faked font and the real one.
To to this, MathJax's web fonts include special characters that allow MathJax to recognize the true bold or italic font as different from one generated algorithmically from the standard font. It uses these to wait for the real font to arrive rather than trying to use the algorithmic one.
What seems to be happening in Chrome 32 is this: MathJax requests the MathJax_Math-bold-italic, but Chrome uses MathJax_Math-italic to construct a bold form that is uses instead. MathJax recognizes that this is not the correct font and waits for the true one to arrive. What is supposed to happen is that the browser goes on to load the true font while MathJax is waiting, and then MathJax will detect it when it does. But what actually seems to happen is that Chrome doesn't make the font available until MathJax has given up waiting for it. MathJax waits for 15 seconds for the font, and then gives up. I can see that the font hasn't changed during those 15 seconds, and as soon as MathJax times out, the font is replaced, so something is wrong about Chrome's handling of the font or the screen refresh, or something related to that.
They seem to have resolved the problem in Chrome 33, according to Peter (I haven't upgraded to see).
Some browsers have trouble with @font-face rules involving bold and italic, and so MathJax has a feature that causes it to load each font as a separate family (rather than trying to use style and weight on a single family). Using this will allow Chrome 32 to load the bold-italic font. So if you add
<script type="text/x-mathjax-config">
if (MathJax.Hub.Browser.isChrome && MathJax.Hub.Browser.version.substr(0,3) == "32.") {
MathJax.Hub.Register.LoadHook(
"[MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js",
function () {MathJax.OutputJax["HTML-CSS"].FontFaceBug = true}
);
}
</script>
that will enable that feature when Chrome 32 is used. That should clear up the issue for you.
Davide