Combining JavaScript and CSS to Make Pages Load Faster

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!

About Peter Kellner

Peter is a software professional specializing in mobile and web technologies. He has also been a Microsoft MVP for the past 7 years. To read more about Peter Kellner and his experience click here. For information about how Peter Kellner might be able to help you with your project click here.

Follow me:


Comments

  1. 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

Your Comments

*

Protected with IP Blacklist CloudIP Blacklist Cloud

Follow

Get every new post delivered to your Inbox

Join other followers: