RequireJS Fundamentals

RequireJS is a asynchronous module loader for javascript files. Loading javascript files is one of the major factors that slow down a website, requirejs will load the necessary javascript files in the background while your browser loads other things. RequireJS is a JavaScript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environments, like Rhino and Node. Using a modular script loader like RequireJS will improve the speed and quality of your code....

July 19, 2015 · 3 min · 427 words · Fahad