diff --git a/apply.js b/apply.js index c78356f6..d6527d41 100644 --- a/apply.js +++ b/apply.js @@ -142,8 +142,10 @@ function applyStyles(styleHash) { document.head.appendChild(document.getElementById(id)); } } - document.addEventListener("DOMContentLoaded", addDocumentStylesToAllIFrames); - iframeObserver.start(); + document.addEventListener("DOMContentLoaded", function() { + addDocumentStylesToAllIFrames(); + iframeObserver.start(); + }); } if (retiredStyleIds.length) {