How to insert multiple timeouts?

Compact syntax with timing methods:

1
2
$('.some').doSome().wait(first-timeout).jQueryStuff()
  .wait(second-timeout).doLater().jQueryStuff();

Compare this to the old way with more syntactic fluff:

1
2
3
4
5
6
7
$('.some').doSome();
setTimeout(function(){
  $('.some').jQueryStuff();
  setTimeout(function(){
    $('.some').doLater().jQueryStuff();
  }, second-timeout);
}, first-timeout);

Similar patterns with timeouts