fix(core): update

This commit is contained in:
Philipp Kunz 2020-05-23 16:36:29 +00:00
parent 4db0e6f5fc
commit 082ef21078

View File

@ -14,7 +14,7 @@ export const elementBasicSetup = async () => {
// lets make sure the dom is ready // lets make sure the dom is ready
const documentReady = defer(); const documentReady = defer();
document.onreadystatechange = () => { document.onreadystatechange = () => {
if (document.readyState === 'interactive') { if (document.readyState === 'interactive' || document.readyState === 'complete') {
documentReady.resolve(); documentReady.resolve();
} }
}; };