Merge branch 'issue233' into develop
This commit is contained in:
commit
be28147f2d
File diff suppressed because one or more lines are too long
|
@ -1967,7 +1967,13 @@ MathJax.Hub.Startup = {
|
||||||
onLoad: function () {
|
onLoad: function () {
|
||||||
var onload = this.onload =
|
var onload = this.onload =
|
||||||
MathJax.Callback(function () {MathJax.Hub.Startup.signal.Post("onLoad")});
|
MathJax.Callback(function () {MathJax.Hub.Startup.signal.Post("onLoad")});
|
||||||
if (document.body && document.readyState && document.readyState !== "loading") {return [onload]}
|
if (document.body && document.readyState)
|
||||||
|
if (MathJax.Hub.Browser.isMSIE) {
|
||||||
|
// IE can change from loading to interactive before
|
||||||
|
// full page is ready, so go with complete (even though
|
||||||
|
// that means we may have to wait longer).
|
||||||
|
if (document.readyState === "complete") {return [onload]}
|
||||||
|
} else if (document.readyState !== "loading") {return [onload]}
|
||||||
if (window.addEventListener) {
|
if (window.addEventListener) {
|
||||||
window.addEventListener("load",onload,false);
|
window.addEventListener("load",onload,false);
|
||||||
if (!this.params.noDOMContentEvent)
|
if (!this.params.noDOMContentEvent)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user