Downloading jQuery
From jQuery JavaScript Library
Contents |
About The Code
The code itself is written rather cleanly in an attempt to self-document. If you've spotted some areas of code that could be improved, please feel free to discuss it on the Development mailing list. All input is gladly appreciated!
All of the code is available in two formats:
- Compressed (which allows you to have a significantly smaller file size) and
- Uncompressed (good for debugging and to understand what is behind the magic).
If you're interested in downloading Plugins developed by jQuery contributors, please visit the Plugins page.
jQuery is provided under the following MIT and GPL licenses.
Download jQuery
This is the recommended version of jQuery to use for your application. The code in here should be stable and usable in all modern browsers.
The minified version, while having a larger file size than the packed version, is generally the best version to use on production deployments. The packed version requires non-trivial client-side processing time to uncompress the code.
Current Release
- 1.2.6 (Release Notes)
Minified, Packed, Uncompressed
Documentation: Visual Studio
Past Releases
- 1.2.5 (Release Notes)
Minified, Packed, Uncompressed - 1.2.4 (Release Notes)
Minified, Packed, Uncompressed - 1.2.3 (Release Notes)
Minified, Packed, Uncompressed - 1.2.2 (Release Notes)
Minified, Packed, Uncompressed - 1.2.1 (Release Notes)
Minified, Packed, Uncompressed - 1.2 (Release Notes)
Minified, Packed, Uncompressed - 1.1.4
Compressed, Uncompressed - 1.1.3.1
Compressed, Uncompressed - 1.1.3
Compressed, Uncompressed - 1.1.2
Compressed, Uncompressed - 1.1.1
Compressed, Uncompressed - 1.1
Compressed, Uncompressed - 1.0.4
Compressed, Uncompressed - 1.0.3
Compressed, Uncompressed - 1.0.2
Compressed, Uncompressed - 1.0.1
Compressed, Uncompressed - 1.0
Compressed
Nightly Builds
The source code in the Subversion repository, mentioned below, is also built and made available on a nightly basis. This is mostly for people who either do not have access to the Subversion repository, or who don't want to go to the trouble of checking out a copy from the repository, and then building jQuery themselves.
The nightly files are available at http://code.jquery.com/nightlies/. Inside that directory the following files are available:
- jquery-nightly.js - The uncompressed jQuery.
- jquery-nightly.pack.js - The compressed version of the above file.
- jquery-nightly.release.zip - The docs, test suite, and all of the pre-built versions of jQuery (uncompressed, light, minimized, and packed).
- jquery-nightly.build.zip - The full jquery path from Subversion. This is everything you need to build jQuery following the instructions below.
Subversion (SVN)
Note: The following is quite advanced. If you wish to just use a more-recent version of jQuery, please try one of the nightly builds, mentioned previously.
All source code is kept under Subversion control, which you can browse online. There's a download link available for any file or directory, if you only want to download a portion of the jQuery code.
If you have access to Subversion, you can connect to the repository here:
svn co http://jqueryjs.googlecode.com/svn/trunk
You can also check out a specific version of jQuery from subversion at:
svn co http://jqueryjs.googlecode.com/svn/tags/<version> e.g. svn co http://jqueryjs.googlecode.com/svn/tags/1.0.4
If you want to build your own copy of jQuery from the Subversion repository, you will need to build it.
Note: The jQuery UI code has moved to a separate repository:
svn co http://jquery-ui.googlecode.com/svn/tags
Build Requirements
jQuery currently requires the following components to be installed:
- A build system (either
make
orant
works):- make: Available on most Unix-based system (Unix, BSD, OSX, Cygwin)
- ant: Available on any platform with JDK and ANT installed
- java: A copy of Java, version 1.4.0 or later
Build Process
You will now need to use the build system that you chose previously - either make
or ant
.
First, go into the main jQuery directory (the root directory will contain six directories: jquery
, plugins
, qunit
, themes
, tools
and ui
; go into jquery
).
If you're using make:
- To create jQuery:
make
- This will create jquery.js, jquery.pack.js, and jquery.lite.js in the dist directory
- This will create cat.xml and index.xml in the docs directory (as well as style information)
- This will build tests in the test directory
- To just build docs:
make docs
- To just build packed jQuery:
make pack
- To just build tests:
make test
If you're using ant:
- To create jQuery:
ant
- This will create jquery.js, jquery.pack.js, and jquery.lite.js in the dist directory
- This will create cat.xml and index.xml in the docs directory (as well as style information)
- This will build tests in the test directory
- To just build docs:
ant docs
- To just build packed jQuery:
ant pack
- To just build tests:
ant test