How to handle mutiple API calls using javascript/jquery

Posted by James Privett on Programmers See other posts from Programmers or by James Privett
Published on 2014-06-04T14:06:02Z Indexed on 2014/06/04 15:42 UTC
Read the original article Hit count: 141

I need to build a service that will call multiple API's at the same time and then output the results on the page (Think of how a price comparison site works for example).

The idea being that as each API call completes the results are sent to the browser immediately and the page would get progressively bigger until all process are complete.

Because these API calls may take several seconds each to return I would like to do this via javascript/jquery in order to create a better user experience. I have never done anything like this before using javascript/jquery so I was wondering if there was any frameworks/advice that anyone would be willing to share.

© Programmers or respective owner

Related posts about JavaScript

Related posts about functional-programming