Description
RequireJS is a JavaScript file and module loader. It is built for use in the browser, where it loads modules asynchronously in the Asynchronous Module Definition (AMD) format so that scripts load in the right order and only when they are needed. Using a modular loader, the site says, improves the speed and quality of your code. RequireJS can also run in other JavaScript environments, such as Rhino and Node. The site's documentation covers the API, optimisation with a build tool that bundles modules for production, and how to use RequireJS with jQuery, Node and Dojo. It also has notes on CommonJS, writing loader plugins, common errors and the reasons behind web modules and AMD. The compatibility list on the site shows support for IE 6 and later, Firefox 2 and later, Safari 3.2 and later, Chrome 3 and later and Opera 10 and later. The latest release listed is 2.3.7. The code is open source under a new BSD or MIT licence, and the project is hosted on GitHub, with its branding material in a separate repository.…
Highlights
- Asynchronous loading of AMD modules in the browser
- Optimisation tool for production builds
- Works with jQuery, Node and Dojo
- Plugin system for custom loaders
- Runs in Rhino and Node as well as browsers
- Open source under BSD or MIT
Ratings & Reviews
No ratings yet
Be the first to rate RequireJS.
People also visit
RequireJS FAQ
What is RequireJS?
A JavaScript file and module loader, mainly for use in the browser, that loads modules in the AMD format.
Is RequireJS free?
Yes. The code is open source and is licensed under either the new BSD or the MIT licence.
Can I use it outside the browser?
Yes. The site says RequireJS can be used in other JavaScript environments such as Rhino and Node.
How do I make a production build?
The site documents an optimisation tool that combines and minifies your modules for production.
What is the latest version?
The site lists 2.3.7 as the latest release.
What are the best RequireJS alternatives?
Popular alternatives to RequireJS include stealjs, Browserify and Lodash.com. See all RequireJS alternatives




