If I want to have synchronous and asynchronous functions execute in a particular order I could use jQuery promise but it doesn\'t seem to work the way I\'d expect it to work
jQuery < 1.8 is fine WRT chaining, you just use .pipe instead of .then. 1.8 simply changed .then to be .pipe.
.pipe
.then