Fonts are not loaded in Firefox

13 views
Skip to first unread message

Tobias Dörr

unread,
Feb 17, 2011, 3:45:03 PM2/17/11
to MathJax Users
Hi,

I think MathJax is just great and so I wanted to use it on a website.
But unfortunately it takes a lot of time to load in Firefox (almost
one minute)...

During this time, messages like "Loading Web-Font TeX/Math/Italic"
appear in the bottom left corner. I learned that this happens due to
Firefox's privacy policy which prevents MathJax from loading the web
fonts from a remote server... But I am using MathJax just on one
server.

That is how I include MathJax (in exampe.org/index.php):
<script type="text/javascript" src="wcf/js/mathjax/MathJax.js">

And the fonts are located at example.org/wcf/js/mathjax/fonts/HTML-CSS/
TeX/otf.

What am I doing wrong? In other browsers MathJax works great.

Thanks for any help...

Davide P. Cervone

unread,
Feb 17, 2011, 3:50:18 PM2/17/11
to mathja...@googlegroups.com
It sounds like you are using MathJax v1.0.1a, but haven't updated the
fonts to handle the changes that Firefox made with version 3.6.13. See

http://www.mathjax.org/2010/12/11/news/update-for-firefox-3-6-13/

for details.

Davide

Tobias Dörr

unread,
Feb 17, 2011, 4:35:55 PM2/17/11
to MathJax Users
Wow, it seems to work now. Thanks a lot!

Iain

unread,
Feb 24, 2011, 1:41:16 PM2/24/11
to mathja...@googlegroups.com
I'm having a similar problem to Tobias, but even with the font files replaced, the fonts are still loading very slowly, you can see at the test page:



Sean Hogan

unread,
Feb 24, 2011, 3:16:22 PM2/24/11
to mathja...@googlegroups.com, Iain
That page loads fine for me. What version of Firefox are you using?
Which OS?

Sean

Davide P. Cervone

unread,
Feb 24, 2011, 4:34:53 PM2/24/11
to mathja...@googlegroups.com
They work for me, too. But note that you are using v1.0.1, which does
not handle Firefox 4 beta properly, so if you are using FF4b, you
should update to MathJax v1.1-beta from the GitHub site. See the
download button at

https://github.com/mathjax/MathJax/

for the latest version.

Davide

Iain Davis

unread,
Feb 24, 2011, 4:54:21 PM2/24/11
to mathja...@googlegroups.com
Windows 7, Firefox 3.6.13

I had my wife also try it from her work machine--FF was noticeably
slower for her as well. :)

Sean Hogan

unread,
Feb 24, 2011, 5:17:29 PM2/24/11
to mathja...@googlegroups.com, Iain Davis
A few questions:

1. Is this page fast in all other browsers on those computers - IE,
Safari, Chrome?
2. When you say "loading very slowly", what sort of loading time are you
getting? 10 seconds, 1 minute, ...
3. After the page has loaded, can you type the following into the
address bar and report the message you receive:
javascript:alert(MathJax.Message.Log())

Sean

Davide P. Cervone

unread,
Feb 24, 2011, 5:49:48 PM2/24/11
to mathja...@googlegroups.com
Worked as expected for me from Windows 7 with Firefox 3.6.13. The
fonts took about 2 seconds to load each. That is comparable to other
browsers I tested.

Davide

Sean Hogan

unread,
Feb 24, 2011, 6:27:27 PM2/24/11
to mathja...@googlegroups.com, Iain Davis
It sounds like your Firefox is still using the old fonts - empty the
browser cache and try again.

Sean


On 25/02/11 8:54 AM, Iain Davis wrote:

Iain Davis

unread,
Feb 24, 2011, 6:38:17 PM2/24/11
to mathja...@googlegroups.com
1. Other browsers are much faster--I can see the delay when MathJax
kicks in, but its brief. I even fired up IE (which hadn't used at all
today yet, so no caching and the like) it loaded the page and
displayed the equations in a few seconds.
2. In Firefox, it took 1 minute 23 seconds (stop-watch)...and that was
with a refresh, so most of it was cached.
3. I did. Looks like for each web font it follows this pattern:

Loading Web-Font TeX/Math/Italic
Can't load web font TeX/Math/Italic

On the off-chance Firefox was mental, I shut it down and back up and
tried again. No change.

I suppose if I'm the only one affected I'm less concerned, but its
interesting. :)

Iain

Robert Miner

unread,
Feb 24, 2011, 7:22:08 PM2/24/11
to mathja...@googlegroups.com
I'm sorry if you already covered this, but do you see the same behavior with other MathJax pages, i.e. fonts hosted on other servers?

--Robert

Davide P. Cervone

unread,
Feb 24, 2011, 7:23:27 PM2/24/11
to mathja...@googlegroups.com
Have you by any change set the preferences to now allow the page to
set its own fonts? There is a preference for that, and it definitely
would cause this behavior.

Davide

Iain Davis

unread,
Feb 24, 2011, 7:57:29 PM2/24/11
to mathja...@googlegroups.com
d'oh!

I should have tried that first. An obvious thing to try when having
problems with something web-based. :)

That, indeed, did fix the problem. My apologies for not trying it sooner. :)

I now have beautiful math formulas being delivered in my web pages!
Yay! That is, as soon as I write some. :)

My thanks, Sean and Davide.

Sean Hogan

unread,
Feb 24, 2011, 10:17:19 PM2/24/11
to mathja...@googlegroups.com, Iain Davis
Restarting Firefox doesn't empty the cache.
You need to use Tools > Clear Recent History (might be different on Windows)

Sean

Reply all
Reply to author
Forward
0 new messages