How to invoke a callback at some specific point in the timeline?
Compact syntax with timing methods:
1
$some.timingStuff().then(callback).doMore();
Compare this to the old way with more syntactic fluff:
1
2
3
4
$some.doStuffAndRegisterCallback(function(){
callback();
$some.doMore();
});