Skip to content

Instantly share code, notes, and snippets.



Created Nov 20, 2013
What would you like to do?
a function that does what I always expect .delay() to do
$.wait = function( callback, seconds){
return window.setTimeout( callback, seconds * 1000 );
// usage
$.wait( function(){ $("#message").slideUp() }, 5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment