Skip to content

Instantly share code, notes, and snippets.

@arjankuijpers
Created September 15, 2014 13:43
Show Gist options
  • Save arjankuijpers/1006ea741ab1584224f4 to your computer and use it in GitHub Desktop.
Save arjankuijpers/1006ea741ab1584224f4 to your computer and use it in GitHub Desktop.
function async(your_function, callback) {
setTimeout(function() {
your_function();
if (callback) {callback();}
}, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment