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.

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?