diff --git a/README.md b/README.md index dafc216d5..573c68502 100644 --- a/README.md +++ b/README.md @@ -70,18 +70,27 @@ grunt The built version of jQuery will be put in the `dist/` subdirectory, along with the minified copy and associated map file. -### Modules (new in 1.8) +### Modules -Starting in jQuery 1.8, special builds can now be created that optionally exclude or include any of the following modules: +Special builds can be created that exclude subsets of jQuery functionality. +This allows for smaller custom builds when the builder is certain that those parts of jQuery are not being used. +For example, an app that only used JSONP for `$.ajax()` and did not need to calculate offsets or positions of elements could exclude the offset and ajax/xhr modules. The current modules that can be excluded are: -- ajax -- css -- dimensions -- effects -- offset +- **ajax**: All AJAX functionality: `$.ajax()`, `$.get()`, `$.post()`, `$.ajaxSetup()`, `.load()`, transports, and ajax event shorthands such as `.ajaxStart()`. +- **ajax/xhr**: The XMLHTTPRequest AJAX transport only. +- **ajax/script**: The `