. Advertisement .
..3..
. Advertisement .
..4..
Can you give me some suggestions for “wait for element to load with jquery”? I’m new to Javascript. Thank you.
Here is a suggestion from ITtutoria team for youvar checkExist = setInterval(function() {
if ($('#the-canvas').length) {
console.log("Exists!");
clearInterval(checkExist);
}
}, 100); // check every 100ms
1 Answer