Skip to content

Instantly share code, notes, and snippets.

@keithelliott
Created August 14, 2012 14:29
Show Gist options
  • Save keithelliott/3349745 to your computer and use it in GitHub Desktop.
Save keithelliott/3349745 to your computer and use it in GitHub Desktop.
using setTimeout
// When using setTimeout, use one of the following patterns
//ex1
var fn1 = function(){
// do something
};
setTimeout(fn1, 0);
//ex2
setTimeout(function(){ fn1;}, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment