Skip to content

Commit

Permalink
Init upon readystate interactive instead of complete
Browse files Browse the repository at this point in the history
  • Loading branch information
mbergen authored May 23, 2024
1 parent 7294d18 commit 0158b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/scripts/ext.networknotice.Notice.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
/**
* Check on document readyState
*/
if ( document.readyState === 'complete' ) {
if ( document.readyState === 'interactive' ) {
init();
} else {
document.addEventListener( 'readystatechange', () => {
if ( document.readyState === 'complete' ) {
if ( document.readyState === 'interactive' ) {
init();
}
} );
Expand Down

0 comments on commit 0158b36

Please sign in to comment.