<commit_before># jQuery Ajax Queue

## Which files to use?
The release version of the code is found in the `dist/` directory.

In your web page:

```html
<script src="jquery.js"></script>
<script src="dist/jquery.ajaxQueue.min.js"></script>
<script>
jQuery.ajaxQueue({
	url: "/ajax",
	dataType: "json"
}).done(function( data ) {
	// ...
});
</script>
```

## Documentation

This adds a new method to `jQuery`:

### `ajaxQueue( options )` 
Takes the same parameters as [jQuery.ajax](http://api.jquery.com/jQuery.ajax), returns a promise.  Note that the return value is not a `jqXHR`, but it will behave like one.  The `abort()` method on the return value will remove the request from the queue if it has not begun, or pass it along to the jqXHR's abort method once the request begins.

## Examples
_(Coming soon)_

## Release History

Started as an [answer on Stack Overflow](http://stackoverflow.com/a/3035268/91914).

## License
Copyright (c) 2013 <NAME>  
Licensed under the MIT license.

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt).

### Important notes
Please don't edit files in the `dist` subdirectory as they are generated via grunt. You'll find source code in the `src` subdirectory!

While grunt can run the included unit tests via PhantomJS, this shouldn't be considered a substitute for the real thing. Please be sure to test the `test/*.html` unit test file(s) in _actual_ browsers.

### Installing grunt<commit_msg>Fixing method name in README<commit_after># jQuery Ajax Queue

## Which files to use?
The release version of the code is found in the `dist/` directory.

In your web page:

```html
<script src="jquery.js"></script>
<script src="dist/jquery.ajaxQueue.min.js"></script>
<script>
jQuery.ajaxQueue({
	url: "/ajax",
	dataType: "json"
}).done(function( data ) {
	// ...
});
</script>
```

## Documentation

This adds a new method to `jQuery`:

### `jQuery.ajaxQueue( options )` 
Takes the same parameters as [jQuery.ajax](http://api.jquery.com/jQuery.ajax), returns a promise.  Note that the return value is not a `jqXHR`, but it will behave like one.  The `abort()` method on the return value will remove the request from the queue if it has not begun, or pass it along to the jqXHR's abort method once the request begins.

## Examples
_(Coming soon)_

## Release History

Started as an [answer on Stack Overflow](http://stackoverflow.com/a/3035268/91914).

## License
Copyright (c) 2013 <NAME>  
Licensed under the MIT license.

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt).

### Important notes
Please don't edit files in the `dist` subdirectory as they are generated via grunt. You'll find source code in the `src` subdirectory!

While grunt can run the included unit tests via PhantomJS, this shouldn't be considered a substitute for the real thing. Please be sure to test the `test/*.html` unit test file(s) in _actual_ browsers.

### Installing grunt
{'fraction_non_alphanumeric': 0.10736386138613861, 'fraction_numerical': 0.009900990099009901, 'mean_word_length': 4.3, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5030571', 'n_tokens_mistral': 983, 'n_tokens_neox': 938, 'n_words': 435}