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:
parent
9be0bfa9a7
commit
244069816a
|
@ -2103,8 +2103,13 @@
|
|||
// but can't call loadComplete within the callback for "mml Jax Ready"
|
||||
// (it would call HTMLCSS's Require routine, asking for the mml jax again)
|
||||
// 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.
|
||||
//
|
||||
setTimeout(MathJax.Callback(["loadComplete",HTMLCSS,"jax.js"]),0);
|
||||
MathJax.Hub.Register.StartupHook("onLoad",function () {
|
||||
setTimeout(MathJax.Callback(["loadComplete",HTMLCSS,"jax.js"]),0);
|
||||
});
|
||||
});
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue
Block a user