Combining JavaScript and CSS to Make Pages Load Faster

Posted by Peter Kellner on November 10, 2009 · 1 min read

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 and it’s working well for us.  This project does a nice job of calling a minifier, gzipping and caching.

Hoe this helps!