diff --git a/src/assets.js b/src/assets.js index 08b233b74..37b5c6255 100644 --- a/src/assets.js +++ b/src/assets.js @@ -360,7 +360,7 @@ function startObserving() { } // Wait for the DOM to be fully loaded before starting the observer -if (document.readyState === 'loading') { +if (document.readyState !== 'complete') { document.addEventListener('DOMContentLoaded', startObserving); } else { // DOMContentLoaded has already fired