Combining JavaScript and CSS to Make Pages Load Faster
Tuesday 10 November 2009 @ 1:26 pm

 

We are in the process of “speeding up” our ExtJS application.  I’m just finally figuring out the rules of the road for doing this.  Here are a couple of rules I believe to be true

  • Combine and Minify All JavaScript
  • Combine All CSS that are in the same directory (because of relative paths)
  • Put the CSS above the JavaScript includes

We are using a library http://atashbahar.com/post/Combine-minify-compress-JavaScript-files-to-load-ASPNET-pages-faster.aspx and it’s working well for us.  This project does a nice job of calling a minifier, gzipping and caching.

Hoe this helps!

Comments (1) - Posted in C#, JavaScript  




One Response to “Combining JavaScript and CSS to Make Pages Load Faster”

  1. Christian Says:

    Hello peter,

    i use the library MBCompression (http://www.codeplex.com/MbCompression). The library has more features like: minify, compress, caching, e-tags, combine css and js files, compress webresources and minify aspx pages.

    Greetings by Chris

Leave a Reply