title: How to send thousands of objects via AJAX?
body: <p>I am trying to load 100K+ records into a cloud service using their AJAX API. It looks something like this:</p>
  
  <pre><code>var multiple = [{ "Author": "Sample Text" }, { "Author": "Second Sample Text" },...];
  
  $.ajax({
      type: "POST",
      url: 'http://api.cloudservice.com/v1/your-api-key-here/Books',
      headers: { "Authorization": "Bearer your-access-token-here" },
      contentType: "application/json",
      data: JSON.stringify(multiple),
      success: function (data) {...},
      error: function (error) {...}
  })
  </code></pre>
  
  <p>I do not want to send a payload of 100K records of course, so I can cut it down to a hundred at a time for example. Even so, doing this in a loop would still be large. How would I create reliable AJAX loop to do this or maybe another way? I also want to reliable record all the errors somehow too. Any experience or suggestions would be greatly appreciated!</p>