Merge branch 'issue233' into develop

This commit is contained in:
Davide P. Cervone 2012-09-11 08:46:24 -04:00
commit be28147f2d
2 changed files with 8 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -1967,7 +1967,13 @@ MathJax.Hub.Startup = {
onLoad: function () {
var onload = this.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) {
window.addEventListener("load",onload,false);
if (!this.params.noDOMContentEvent)