fix(core): update
This commit is contained in:
parent
4db0e6f5fc
commit
082ef21078
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user