Thursday, March 24, 2016

01 Why RequireJS?



RequireJS is a JavaScript file and module Loader. It is optimized for in-browser use, but it can be used  in another JavaScript Framework like NodeJS and Rhino. Using a modular script loader like RequireJS will improve the speed and quality of code.

Problems -
  • Web Sites are turning into Web Applications.
  • Code complexity is growing in big Web Applications.
  • Code assembly gets harder.
  • Developer wants to create individual JS files or modules.
  • Deployment wants optimized code in just one or a few HTTP calls.

Solutions - 
  • Developers want to import/include/require module whenever needs.
  • Ability to load nested dependencies.

Manual Categories