Skip to content

Instantly share code, notes, and snippets.

@toadkicker
Created July 17, 2013 01:42
Show Gist options
  • Select an option

  • Save toadkicker/6016984 to your computer and use it in GitHub Desktop.

Select an option

Save toadkicker/6016984 to your computer and use it in GitHub Desktop.
check for element and stop checking when done
var checkExist = setInterval(function() {
if ($('#the-canvas').length) {
console.log("Exists!");
clearInterval(checkExist);
}
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment