Contents |
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:
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.
A number of large enterprises provide hosted copies of jQuery on existing CDN networks that are available for public use. Below are links to the CDN-hosted copies of jQuery that you may hotlink to.
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 versions, while having a larger file size than the packed versions (note: packed version is not available in current release), are generally the best versions to use on production deployments. The packed versions require non-trivial client-side processing time to uncompress (unpack) the code whereas the minified versions do not. The packed versions of jQuery will take less time to download than the minified or uncompressed versions; however, each time the library is loaded (initially or from the browser cache) it will need to be uncompressed which will cause a non-trivial delay in the execution of any jQuery code each time it is loaded.
The source code in the Git repository, mentioned below, is also built and made available on a semi-nightly basis. This is mostly for people who either do not have access to the Git repository, or who don't want to go to the trouble of checking out a copy from the repository, and then building jQuery themselves.
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 Git revision 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 Git, you can connect to the repository here:
git clone git://github.com/jquery/jquery.git
You can also check out a specific version of jQuery from GitHub at:
git clone git://github.com/jquery/jquery.git git checkout <version> e.g. git checkout 1.2.6
If you want to build your own copy of jQuery from the Git repository, you will need to build it.
Note: The jQuery UI code is in its own Subversion repository:
svn co http://jquery-ui.googlecode.com/svn/tags
jQuery currently requires the following components to be installed:
make
or ant
works):
Build Process
You will now need to use the build system that you chose previously - either make
or ant
.
make
ant