ajaxQueue ([login to view URL]) is a small open source library that queues jQuery AJAX requests so that only one request is active at a time.
I need an extension to this library to allow me to allow more simultaneous requests, but with a specified cap on the number.
That is: I would call $.[login to view URL](4), (where setMaxSimultaneous is a function you will add). Then, future calls to $.ajaxQueue will be queued, with up to four queries allowed to be active simultaneously.
- I don't want any other changes to how I use the library. Once I add that one line, my existing client code should just work.
- I expect a cleanl solution, compatible in style and quality with the existing library. All the existing library grunt tasks should continue to work.