If you are playing with XHR, sometimes you need to wait for many small requests. Sure, you can have separate callback for each request, but sometimes you need to wait until you load full dataset. Of course you can use modern ways like
promise, but there aren’t supported everywhere.
Light side of the Force