Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

wait for element to load

loading = setInterval(function () {
    if (document.getElementById("myElement")) {
        // Element Has Loaded, Put your code here!
        clearInterval(loading);
    }
}, 100); // Checks every 100ms(0.1s)
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #wait #element #load
ADD COMMENT
Topic
Name
5+5 =