RequireJS

Managing CSS files using Require JS – II

Managing CSS files using Require JS – II

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 […]

Managing CSS files using Require JS – I

Managing CSS files using Require JS – I

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 […]

Managing JavaScript files using RequireJS – III

Managing JavaScript files using RequireJS – III

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 […]

Managing JavaScript files using RequireJS – II

Managing JavaScript files using RequireJS – II

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 […]

Managing JavaScript files using RequireJS – I

Managing JavaScript files using RequireJS – I

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 […]