RequireJS: JavaScript for the Enterprise
        Posted  
        
            by Geertjan
        on Oracle Blogs
        
        See other posts from Oracle Blogs
        
            or by Geertjan
        
        
        
        Published on Fri, 22 Aug 2014 13:43:46 +0000
        Indexed on 
            2014/08/22
            16:30 UTC
        
        
        Read the original article
        Hit count: 258
        
/NetBeans IDE
(Sorry for the wobbly sound in the above.) 
An interesting comment by my colleague John Brock on the above:
One other advantage that RequireJS brings, is called lazy loading of resources. In your first example, everyone one of those .js files is loaded when the first file is loaded in the browser. By using the require() call in your modules, your application will only load the javascript modules when they are actually needed. It makes for faster startup in large applications. You could show this by showing the libraries that are loaded in the Network Monitor window.
So I did as suggested:
Click the screenshot to enlarge it and notice how the Network Monitor is helpful in the context of RequireJS troubleshooting.
© Oracle Blogs or respective owner
