Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript ready state

(function() {
    var state = document.readyState;
    if(state === 'interactive' || state === 'complete') {
        // do stuff
    }
    else setTimeout(arguments.callee, 100);
})();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #ready #state
ADD COMMENT
Topic
Name
1+2 =