How to insert a single timeout?
Compact syntax with timing methods:
1
$('.some').doSome().wait(timeout).doLater();
Compare this to the old way with more syntactic fluff:
1
2
3
4
$('.some').doSome();
setTimeout(function(){
$('.some').doLater();
}, timeout);