Since loadComplete calls Config and Startup, which require the page body to be nodified, wait for the onload handler to call loadComplete

This commit is contained in:
Davide P. Cervone 2011-01-01 16:42:20 -05:00
parent 9be0bfa9a7
commit 244069816a

View File

@ -2104,8 +2104,13 @@
// (it would call HTMLCSS's Require routine, asking for the mml jax again) // (it would call HTMLCSS's Require routine, asking for the mml jax again)
// so wait until after the mml jax has finished processing. // so wait until after the mml jax has finished processing.
// //
// We also need to wait for the onload handler to run, since the loadComplete
// will call Config and Startup, which need to modify the body.
//
MathJax.Hub.Register.StartupHook("onLoad",function () {
setTimeout(MathJax.Callback(["loadComplete",HTMLCSS,"jax.js"]),0); setTimeout(MathJax.Callback(["loadComplete",HTMLCSS,"jax.js"]),0);
}); });
});
// //
// Handle browser-specific setup // Handle browser-specific setup