In the earlier post we created a file (index.html) that uses a stylesheet dev.css. dev.css internally refers to two other CSS files style1.css and style2.css. Loading index.html file sends three individual requests to the server one for each of the […]
In an earlier post on RequireJS we discussed optimized loading of JavaScript files. Let’s discuss optimized loading of CSS files using RequireJS in this post. In this example, we’ll have index.html file that uses dev.css file. dev.css file uses two […]
In the earlier post, we discussed managing dependencies of our JavaScript files using Require JS. The application uses jQuery.js, A.js and B.js. They are loaded in order using Require js. However the browser while loading the html file, sends individual […]
In the earlier post we created a HTML page that used three js files, jquery-1.8.3-min.js, A.js and B.js. The page had three <script> tags one for each js file. To re-iterate one of the problems with this approach as mentioned […]
RequireJS is a JavaScript library that provides two main facilities. Manage dependencies of JavaScript code in our applications Optimize JavaScript code In this post and subsequent posts we’ll discuss use of RequireJS in our applications. We’ll see how we can […]