Skip to main content

RequireJS overview

RequireJS is a JavaScript module and file loader which is supported in the latest versions of popular browsers. It is optimized for in-browser use but it can be used in other JavaScript environments as well.

In RequireJS, all code is wrapped in require() or define() functions. The first parameter of these functions specifies dependencies. Since RequireJS only considers JavaScript (.js)files, all file extensions are omitted.