https://github.com/hubgit/jquery-ajax-queue
jQuery Ajax Queue
https://github.com/hubgit/jquery-ajax-queue
Last synced: 7 months ago
JSON representation
jQuery Ajax Queue
- Host: GitHub
- URL: https://github.com/hubgit/jquery-ajax-queue
- Owner: hubgit
- License: mit
- Created: 2014-01-19T21:58:35.000Z (about 12 years ago)
- Default Branch: gh-pages
- Last Pushed: 2014-02-20T21:20:01.000Z (about 12 years ago)
- Last Synced: 2025-08-31T04:56:20.641Z (7 months ago)
- Language: JavaScript
- Homepage: http://git.macropus.org/jquery-ajax-queue/jquery.ajaxQueue.js
- Size: 230 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# jQuery Ajax Queue
[Demonstration](http://git.macropus.org/jquery-ajax-queue/demo/)
## Usage
### Make a request
$.ajaxQueue(params, options);
`params`: parameters object, passed through to [jQuery.ajax](http://api.jquery.com/jquery.ajax/)
`options`: options object, for the queued item
* `queue: string`: queue name (default = 'default')
* `priority: boolean`: true = insert at the front of the queue (default = false)
* `tries: integer`: retry the request n times if it fails due to server error (default = 3)
* `limit: integer`: delay, in milliseconds, after this request (default = 0)
### Set the number of concurrent requests
$.ajaxQueue.concurrent(n);
`n`: how many requests to run concurrently (will cause responses to return out of sequence)