John Lam 1997 — 2026

Optimizing a Web Site Part 1: Measure!

I’m helping my brother fix his web site. He’s put a lot of effort into creating a great web site with a lot of excellent content on it. But he’s not getting the results that he needs to help grow his business. So … I offered to help. I’m writing this down in hopes that someone else can find this useful. And, on the other hand, since I don’t optimize web sites for a living, I’m really hoping that some of you can help me figure out what I’m doing wrong!

The first thing that I notice is that his homepage loads really slowly. So I pull out FireBug and start measuring.

Firebug_logo

Two striking observations:

  1. His home page is only 5.8KB, but takes 5.95s to load

  2. His home page makes 65 requests to the server, and weighs in at a hefty 874KB

I log into his web site, and start poking around. He’s using WordPress since it’s easy to get up and running for folks without a web background. That’s a double-edged sword, of course since it’s easy to build a site that looks great, but loads incredibly slowly. WordPress is the FrontPage of the 21st century.

Other observations:

His page loads 378KB of JavaScript:

Javascript

There are 44 images weighing in at 444KB:

Image_files

There are 13 CSS files weighing in at 46.3KB:

Css_files

There’s clearly room for improvement here. I’m not sure who to blame for the ~6s in latency in serving up the initial 5KB web page for his site. That’s clearly unacceptable, and is present on every other page on his site as well. Right now I don’t know if WordPress will stay in the picture. Thoughts from the peanut gallery?