Initialisation Delay

72 views
Skip to first unread message

Mario Lipinski

unread,
Mar 29, 2012, 5:27:17 PM3/29/12
to mathja...@googlegroups.com
Hi,

I installed MathJax on a site and am wondering why the initialisation takes so long. The site loads and then there is a pause of 15 seconds. Then MathJax begins work and renders the math.

I tried to analyse what is going on, but during these 15 seconds there are no requests to the webserver. Also the computer rendering the page is idle during this time - the browser is not using any CPU time. I also tried different configuration options regarding the initialisation, but was not able to improve the performance.

See http://probweb.sciplore.org/mrdlib/documents/14616/

Thanks,
Mario

Davide P. Cervone

unread,
Apr 2, 2012, 9:20:59 AM4/2/12
to mathja...@googlegroups.com
It is due to your "my.js" configuration file. You need to change the
last line in the file from "default.js" to "my.js" so that MathJax
will be informed that your file has completed loading (right now you
are telling MathJax that default.js has loaded, which is the wrong
file). MathJax has a 15 second timeout waiting for files to indicate
that they have loaded properly, so that is the 15 second delay you are
seeing.

Davide

Mario Lipinski

unread,
Apr 2, 2012, 8:47:33 PM4/2/12
to mathja...@googlegroups.com
Great! It's working perfectly now.

Thank you!
Mario

Reply all
Reply to author
Forward
0 new messages