Monthly Archives: November 2008

Speeding Up Your Web Site with YSlow for Firebug

I’m always looking for an edge over our competitors to make using our e-commerce sites better from a usability standpoint. I think one of the easiest things to make the experience better is to make sure your site is responsive when people visit it, no matter what kind of connection they have or what they have for a computer. I decided to do some research on how to improve our sites download times and came across YSlow for Firebug.

YSlow is a Firefox extension that plugs into the Firebug extension. Any developer that doesn’t use Firebug is really missing out. So if you don’t have it, get it. Anyway, you can install YSlow right into Firefox and get access it through Firebug.

Upon analyzing our site the first time, we received a score of 42 from YSlow, which was an F. Ouch. That didn’t make me feel all that great about our site. You can see screen shots of our initial scores here and here. We scored really low for all but four of the thirteen performance criteria. I decided to attack the easiest tasks to complete first. This was Minify JS, Add an Expires header, and Gzip components.

I minified our javascript files using a utility called JSMin. It basically removes all whitespace and line returns from your file. It doesn’t compress the code all the way, but I wanted it to remain a little readable if I needed to look at the code on the live search.

Next, I wanted to handle adding an expires header. Since we use ASP.NET and C# for our web application, I was able to write a HttpHandler to do this for me. What was even better was I was able to handle the expires header and another issue, ETags configuration, all in the same snippet of code. For each request, our HttpHandler adds an empty ETag and an Expires Header of 3 days in the future. Both of these are used to determine when a cached copy of a web page needs to be refreshed. The ETag tells the browser that the version it sees now is different from the original. The Expires header obviously sets the expiration on the page.

Lastly, I wanted to GZip all of our components. This just required configuration of our IIS Server. You can also do this directly within your .NET application, but I didn’t see the value in this as IIS could do it for us.

After implementing these changes and a few other mundane ones, I ran YSlow again. Low and behold, we’d gone from a score of 42 to a score of 76. Not bad! We’re now scoring a “High C” according to YSlow. From a usability standpoint, I could definitely tell that the site responded much faster than it did when we were scoring a 42. For those of you that would like to see screen shots of the stats, you can see them here and here. Looking at the stats, you can see that we cut down the data downloaded from 413.1k to 234k, which looks like a huge improvement.

I strongly recommend anyone who’s developing web applications to take a look at YSlow. You might not be able to implement changes for all of the points it says you’re not doing well for, but even 2 or 3 changes should net you some great improvements in the performance of your site.

Google’s New Promote and Remove Feature

I’m not sure how many people have seen those two new icons next to Google search results, and . Apparently its a new way to say, “Yeah, this result was useful to me or No, its not.”. I’m guessing Google wants to see what actual human beings think of the results that they’re displaying. Obviously the Google engine is only an engine, based on a machine and code, so it’s not 100% perfect. Grabbing the human factor of a useful or not so useful search result is something they’d definitely want to know.

But that got me to thinking, how useful is it to them? I’d think eventually people are going to try and abuse this in order to put down results for their competitors and promote their own. Granted, that will all depend on how much Google weighs the information they get and what they do with it. Perhaps they just want to gather it and do nothing with it to affect how results are actually displayed. Or maybe they do. Who knows. I haven’t seen much information on it other than people discussing what they’re seeing in different forums, etc.

Whatever the reason is and what it means for SEO down the road will be interesting to see. I for one will be keeping a close eye on anything I see about this.

Update:  So apparently this is all part of Google’s SearchWiki. When you’re logged into Google Accounts, you’ll see these nifty buttons. It allows you to customize your own search results. This doesn’t mean the index itself gets affected. However, I’d still bet my lunch on the fact that Google eventually uses these human “modded” search results in weighing its own search results. Hopefully though this keeps abuse to a minimum.

Whats Up with Irregular and Inconsistent Google Search Results?

I’ve noticed some wackiness (at least what I consider wacky) with Google search results lately. We’ve been working slowly but surely on improving our rankings for one of our sites. We haven’t been making any sweeping changes, but instead making small tweaks here and there to title tags, meta descriptions, adding some relevant content to our pages, and getting our pages linked to from other relevant sites.

What I’ve noticed over the last week though, is that a couple times a week, we’ll drop off the face of Google search results for one of our top terms. Its not like we’re falling from #3 to #10 or from Page 1 to Page 2, but falling off the results map altogether. What’s even weirder is that a couple of days later, we’re back up to where we were before the “hiccup”.

We’ve also noticed that search results at any given time of the day can vary greatly. We can show up ranked #2 or #3 for a top keyterm, then later on in the day, #9. Or, perform one search and we’re #3 and immediately search again and we’re #6. Sometimes, I can search for a phrase and get one ranking while a co-worker can do the same search and get a completely different ranking. I’ve been trying to figure out why this happens, but I keep coming up empty.

I never expect to keep rankings forever as the web changes almost constantly, but you’d think that you’d get at least some consistency in search results. Especially for a site that is fairly well built and adheres to what Google calls best practices. But what I am really confused by is the wholesale change to our rankings for certain keywords in one fell swoop. I’d expect to see rankings slip and slip, not disappear all together.

It could very well be that all of this is just a lack of a complete understanding on how Google search results and rankings work. I’m not a complete newb to SEO, but I’m not an expert either. If anyone can enlighten and educate me on what I’m seeing in our search results, I’d be certainly grateful.