October 16

Optimize your webpages with YSlow

Often times in the fight to develop web pages quickly we forget how important it is to make sure our page is optimized to the best of your ability.  Simple things like placing CSS and Javascript files externally are an easy and well known example of page optimization but many times we can do more. Yahoo! has provided a set of recommendations on their site called Best Practices for Speeding up your Website. This list spans all areas of a page that can be tweaked with to minimize page size and loading time.  Now many of these recommendations have their downsides as well but overall I found some good ideas on improving my web page performance.

The obvious question now is how do I make sure I am complying to all these best practices while I am developing.  Well luckily Yahoo! has provided a very well integrated addon for Mozilla Firefox called YSlow. YSlow provides automatic feedback in your browser status bar for every page you load.  It gives a performance grade (very strict) on each page along with the page size and load time.  I find this very helpful while developing so I can quickly glance at these stats every time my page loads.  YSlow also provides a detailed list of every HTTP request made when loading the page. This is nice so you can see how long it takes to download certain images or script files.  Improvements can then be made to cache those large images if they tend not to change often or with a script maybe minify it before deploying it.  Lastly this addon provides a nice way to view overall stats of the page including images, css, and JS downloaded.

YSlow Web Page Stats Window

Next time you go searching for Firefox addons be sure to pick this one up!

Creative Commons License
The Optimize your webpages with YSlow by Molecular Voices, unless otherwise expressly stated, is licensed under a Creative Commons Attribution 3.0 Unported License.

Comments

  1. Craig Andrews said on October 17th, 2008

    YSlow! is pretty awesome. One of thing YSlow! recommends is compressing your javascript, and combining js files… and Yahoo also makes a tool available to do that: YUI Compressor.

    YUI Compressor is cool and all, but my favorite part is the Maven mojo which integrates it directly into your build process, so scripts are automatically combined and compressed when your project is compiled. The mojo is in Maven’s repository, and it’s home page is at http://alchim.sourceforge.net/yuicompressor-maven-plugin/overview.html

  2. Arra Derderian said on October 17th, 2008

    Streamlining a tool like Maven mojo into the build process would be key if you decided to start compressing your javascript files. I have never used a compressor but have heard often times it can break some of your javascript code and also make it tough to debug. Any experience with that happening?

Add a comment
Technorati Profile

Browse posts by month

Browse by author

We're always looking for rockstars

Come take a look at careers with Molecular