RequireJS API (original) (raw)
- Usage§§ 1-1.3
- Load JavaScript Files§ 1.1
- data-main Entry Point§ 1.2
- Define a Module§ 1.3
- Simple Name/Value Pairs§ 1.3.1
- Definition Functions§ 1.3.2
- Definition Functions with Dependencies§ 1.3.3
- Define a Module as a Function§ 1.3.4
- Define a Module with Simplified CommonJS Wrapper§ 1.3.5
- Define a Module with a name§ 1.3.6
- Other Module Notes§ 1.3.7
- Circular Dependencies§ 1.3.8
- Specify a JSONP Service Dependency§ 1.3.9
- Undefining a Module§ 1.3.10
- Mechanics§§ 2
- Configuration Options§§ 3
- Advanced Usage§§ 4-4.6
- Loading Modules from Packages§ 4.1
- Multiversion Support§ 4.2
- Loading Code After Page Load§ 4.3
- Web Worker Support§ 4.4
- Rhino Support§ 4.5
- Nashorn Support§ 4.6
- Handling Errors§ 4.7
- Loader Plugins§§ 5-5.4
Usage § 1
Load JavaScript Files § 1.1
RequireJS takes a different approach to script loading than traditional