I have several jQuery .ajax calls on the same page like:
$.ajax({
url: "page1.php",
cache: false,
success: function(html) {
//do some stuff with returned html
}
});
When I run the page some may complete out of order. I’m guessing they are all starting at the same time.
Is there a way for me to queue them up so they fire in a particular order and not until the previous one completes?
You may take a look at the following plugin which allows you to queue requests.