# Download RequireJS

- Latest Release§ 1

- require.js§ 1.1
- Sample RequireJS + jQuery 1.7 project§ 1.2
- r.js: Optimizer and Node and Rhino adapter§ 1.3

- Plugins§ 2

- text§ 2.1
- domReady§ 2.2
- cs (CoffeeScript)§ 2.3
- i18n§ 2.4

- Release Notes§ 3

## Latest Release§ 1

Just released: RequireJS 2.0. If you want 1.0: Link to 1.0.

#### require.js 2.0.2 Minified With Comments

All you need to start using require.js in the browser.

#### Sample RequireJS 2.0.2 + jQuery 1.7.2 project Download

A zip file containing a sample project that uses jQuery and RequireJS.

#### r.js: Optimizer and Node and Rhino adapter Download

The r.js file allows you to run the optimizer as well as run modules in Node or Rhino.

If you are running in Node, and want to use npm to install this file via npm, see the Use with Node page for more information.

For information on its use, as well as how to get the JAR files to run it under Rhino, see the r.js README.

## Plugins§ 2

These are useful loader plugins that have the same license terms as require.js itself. Download the plugin file and place it as a sibling to your "data-main" main.js script.

#### text Download

Load text files and treat them as dependencies. Great for loading templates. The text strings can be inlined in an optimized build when the optimizer is used.

#### domReady Download

Wait for the DOM is ready. Useful for pausing execution of top level application logic until the DOM is ready for querying/modification.

#### cs (CoffeeScript) Download

Load files written in CoffeeScript. Includes a version of CoffeeScript, only this one file is needed. With this plugin, it is easy to code in CoffeeScript in the browser, it can participate in the optimizer optimizations, and it works in Node and Rhino via the RequireJS adapter. This is the best way to do cross-environment, modular CoffeeScript. The project home has more information on how to use it.

#### i18n Download

Load string bundles used in internationalization (i18n) that are made up of separate country/language/locale-specific bundles.

## Release Notes§ 3

### 2.0.2

- Fixed require.js issues
- Fixed r.js optimizer issues

### 2.0.1

- Fixed require.js issues
- Fixed r.js optimizer issues

### 2.0.0

- 2.0 changes
- Fixed require.js issues
- Fixed r.js optimizer issues

### 1.0.8

Small bug fixes to:

- require.js
- r.js optimizer

### 1.0.7

Small bug fixes to:

- require.js
- r.js optimizer

### 1.0.6

Main purpose of the release is to fix a regression in 1.0.5 where the optimizer's "dir" config option was not applied correctly when passed on the command line.

The other notable change: the optimizer now supports onBuildRead and onBuildWrite functions that are called when JS modules are read or written for an optimized build layer. This allows doing some regexp work to modify their contents.

Small bug fixes to:

- require.js
- r.js optimizer

### 1.0.5

Small bug fixes to:

- require.js
- r.js optimizer

### 1.0.4

Small bug fixes to:

- require.js
- r.js optimizer

### 1.0.3

Small bug fixes to:

- require.js
- r.js optimizer

### 1.0.2

Small bug fixes to:

- require.js
- r.js optimizer

### 1.0.1

Just small bug fixes related to:

- allowing full URLs for simplified CommonJS wrapped modules
- AST parsing of dependencies for modules that use a variable for the factory function
- catching more cases that should have the "namespace" optimizer option applied

Detailed list of changes for require.js and the r.js optimizer:

- require.js 1.0.1 changes
- r.js 1.0.1 changes