I have been using jQuery\'s stop(true, true) method to clear running animations so the next one starts immediately. I noticed that the first parameter, clearQ
stop(true, true)
clearQ
Chaining multiple stop(false, true) makes sense. Instead of hard-coding a fixed number of chained calls, you could check the queue length:
stop(false, true)
while ($(this).queue().length) { $(this).stop(false, true); }
Demo: http://jsfiddle.net/AB33X/