How to invoke a single function after a timeout?
Compact syntax with timing methods:
1
$.wait(timeout, function(){ … });
Compare this to the old way with more syntactic fluff:
1
setTimeout(function(){ … }, timeout);
Compact syntax with timing methods:
1
$.wait(timeout, function(){ … });
1
setTimeout(function(){ … }, timeout);