Large Web Applications with Require.js

Large web applications are often built using a large number of JavaScript files. It isn’t uncommon to have applications with tens or even hundreds of JS files that are loaded manually by the application. When you are dealing with applications that contain that many files, how well you organize the files is important. This is important both from helping maintain your code, but it is also important to ensure the right code is loaded at the right time to ensure your users’ browser isn’t wasting time doing unnecessary work.