Skip to content

Instantly share code, notes, and snippets.

@smockle
Created May 8, 2013 00:09
Show Gist options
  • Save smockle/5537221 to your computer and use it in GitHub Desktop.
Save smockle/5537221 to your computer and use it in GitHub Desktop.
Timing demonstrates a JavaScript delay and loop.
// Delay
window.setTimeout(function(){}, 1000);
// Loop
var l = window.setInterval(function(){}, 1000);
window.clearInterval(l);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment