Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if the document is ready js

let stateCheck = setInterval(() => {
  if (document.readyState === 'complete') {
    clearInterval(stateCheck);
    // document ready
  }
}, 100);
 
PREVIOUS NEXT
Tagged: #check #document #ready #js
ADD COMMENT
Topic
Name
9+9 =