diff --git a/resources/scripts/ext.networknotice.Notice.js b/resources/scripts/ext.networknotice.Notice.js index edb3858..8f67d46 100644 --- a/resources/scripts/ext.networknotice.Notice.js +++ b/resources/scripts/ext.networknotice.Notice.js @@ -47,11 +47,11 @@ /** * Check on document readyState */ - if ( document.readyState === 'interactive' ) { + if ( [ 'interactive', 'complete' ].includes( document.readyState ) ) { init(); } else { document.addEventListener( 'readystatechange', () => { - if ( document.readyState === 'interactive' ) { + if ( [ 'interactive', 'complete' ].includes( document.readyState ) ) { init(); } } );