Github url


by requirejs

requirejs /requirejs

A file and module loader for JavaScript

12.5K Stars 2.4K Forks Last release: Not found Other 1.4K Commits 70 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


RequireJS loads plain JavaScript files as well as more defined modules. It is optimized for in-browser use, including ina Web Worker, but it can be used in other JavaScript environments, like Rhino andNode. It implements theAsynchronous ModuleAPI.

RequireJS uses plain script tags to load modules/files, so it should allow for easy debugging. It can be usedsimply to load existing JavaScript files, so you can add it to your existing project without having to re-write your JavaScript files.

RequireJS includes an optimization toolyou can run as part of your packaging steps for deploying your code. The optimization tool can combine and minify your JavaScript files to allow for better performance.

If the JavaScript file defines a JavaScript module viadefine(), then there are other benefits RequireJS can offer: improvements over traditional CommonJS modulesand loading multiple versionsof a module in a page. RequireJS also has a plugin system that supports features likei18n string bundles, andtext file dependencies.

RequireJS does not have any dependencies on a JavaScript framework.

RequireJS works in IE 6+, Firefox 2+, Safari 3.2+, Chrome 3+, and Opera 10+.

Latest Release



Code of Conduct

jQuery Foundation Code of Conduct.


  • dist: Scripts and assets to generate the docs, and for generating a require.js release.
  • docs: The raw HTML files for the docs. Only includes the body of each page. Files in dist are used to generate a complete HTML page.
  • tests: Tests for require.js.
  • testBaseUrl.js: A file used in the tests inside tests. Purposely placed outside the tests directory for testing paths that go outside a baseUrl.
  • Updates projects that depend on require.js Assumes the projects are siblings to this directory and have specific names. Useful to copy require.js to dependent projects easily while in development.


This repo assumes some other repos are checked out as siblings to this repo:

git clone git clone git clone git clone

So when the above clones are done, the directory structure should look like:

  • domReady
  • i18n
  • text
  • requirejs (this repo)

You will need to be connected to the internet because the JSONP and remoteUrls tests access the internet to complete their tests.

Serve the directory with these 4 siblings from a web server. It can be a local web server.

Open requirejs/tests/index.html in all the browsers, click the arrow button to run all the tests.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.