Skip to content

Instantly share code, notes, and snippets.

@ginpei
Created April 28, 2011 03:09
Show Gist options
  • Save ginpei/945726 to your computer and use it in GitHub Desktop.
Save ginpei/945726 to your computer and use it in GitHub Desktop.
Easy non-blocking looping
(function() {
// any codes
$('#time').text(new Date().toString());
// call own self
var INTERVAL = 10;
setTimeout(arguments.callee, INTERVAL);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment