diff --git a/static/js/oml.js b/static/js/oml.js index 182c825..9f14921 100644 --- a/static/js/oml.js +++ b/static/js/oml.js @@ -287,8 +287,10 @@ // FF3.6 document.body can be undefined here window.onload = function() { document.body.style.margin = 0; - document.body.appendChild(loadingScreen); - startAnimation(); + if (!animationInterval) { + document.body.appendChild(loadingScreen); + startAnimation(); + } }; // IE8 does not call onload if already loaded before set document.body && window.onload(); diff --git a/static/js/oml.update.js b/static/js/oml.update.js index aec6d55..14961ad 100644 --- a/static/js/oml.update.js +++ b/static/js/oml.update.js @@ -121,8 +121,10 @@ // FF3.6 document.body can be undefined here window.onload = function() { document.body.style.margin = 0; - document.body.appendChild(loadingScreen); - startAnimation(); + if (!animationInterval) { + document.body.appendChild(loadingScreen); + startAnimation(); + } }; // IE8 does not call onload if already loaded before set document.body && window.onload();