2

I am trying to make 100 ajax request in $.when at a time on Chrome :

var task = [];
List.forEach(function (item, index) {   // List length is 100       
    tasks.push(ajaxUploadTrackable(item));   
}

$.when.apply(null, tasks).then(function (result) {
  // do somthing
}

enter image description here

but some request got failed. please give me any idea. is there pending time limitation or maximum number of requests at a time???

happenask
  • 1,062
  • 3
  • 14
  • 21
  • What reasons are indicated for the failed requests? Why do they fail? Do you have any indications on that in chrome dev tools? – Romeo Sierra May 30 '18 at 04:10
  • 1
    Possible duplicate of [jquery how to use multiple ajax calls one after the end of the other](https://stackoverflow.com/questions/9235237/jquery-how-to-use-multiple-ajax-calls-one-after-the-end-of-the-other) – Dinesh Ghule May 30 '18 at 04:18

1 Answers1

0

Insted of loop check for sync and async

Put your AJAX call in a function and call it from the AJAX callback: check Link

Dinesh Ghule
  • 3,423
  • 4
  • 19
  • 39