Check if there are any AJAX request alive
I do a lot of AJAX Requests at the same time. I ne开发者_StackOverflow社区ed to know when EVERY requests are over. How do I check that? Thank you!
Increment a counter with every request you issue, decrement that counter and test for zero when you get the response.
Remember that most browsers limit the number of concurrent requests that can be issued against the same server, queueing them up. It might benefit performance if you could combine some of the requests.
精彩评论