From 054c6946d4f86e4ba5ce6284554c8cacd7498e93 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Thu, 28 Feb 2013 13:56:52 -0500 Subject: Update docs about custom builds, including unSizzled version. --- README.md | 66 +++++++++++++++++++++++---------------------------------------- 1 file changed, 24 insertions(+), 42 deletions(-) (limited to 'README.md') 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 `