Refactoring RickBeckman.org

by Rick Beckman on January 8, 02008

Update: I’ve dis­abled a few plu­g­ins (you’ll prob­a­bly never miss them); I’m not sure which was slow­ing things down so much, but since doing so, the site loads 2–4 times faster for me, accord­ing to my page load timer. That’s a def­i­nite plus, but it isn’t a band­width sav­ings and I’d still like to trim the fat in that area a lit­tle bit, to help out my vis­i­tors still afflicted with dial-up Inter­net (hi, Dad!).

I’ve con­sid­ered doing this for quite some time, and if I don’t do it soon, it’s going to drive me crazy.

Fairly recently, I became aware of Yahoo!‘s Best Prac­tices for Speed­ing Up Your Web Site; these best prac­tices com­prise 14 guide­lines which, if fol­lowed, ought to pro­vide an opti­mum expe­ri­ence for users of a website.

Using Yahoo!‘s YSlow, I’ve been shown that cur­rently RickBeckman.org is far from adher­ing to Yahoo!‘s guide­lines. Indeed, on only four of the guide­lines does YSlow award the site with A grades; on two it gets Cs, two are not applic­a­ble (appar­ently), and on six the gets Fs.

So over the course of the next few days (though the process could take longer), I’m going to be refac­tor­ing things around here. If you read this site via the syn­di­ca­tion feed, you shouldn’t notice too much (and thanks for sub­scrib­ing — you rock!); if, how­ever, you visit the site to read it, you’ll likely notice all sorts of changes.

It’s going to be inter­est­ing to see if there are any notice­able improve­ments in the site’s per­for­mance through­out the process; I’ll def­i­nitely be keep­ing an eye on Faster­fox’s page load timer through­out my experiments!

Edit to add: Actu­ally, it may be a few days before any big changes are noticed at all; I’m going to set up a dummy blog to try out my ideas for opti­miz­ing this site, and once every­thing is work­ing beau­ti­fully there, I’ll trans­fer the code over. Until then, sit tight!

[edit to add] Progress thus far: New style cho­sen, per­fect “A” record in YSlow achieved (for all applic­a­ble points), and numer­ous style tweaks made. Stay tuned!

{ 3 voices in the conversation. Speak up! }

Chris January 13, 2008 at 13:21

Hmm, interesting… Like you, the performance of my site has driven me crazy, but I just chalked it up partially to the hosting company and partially to posts that had embedded youtube videos and such. YSlow pointed out some areas for improvement, though. On the various points, I’m graded A or F, no in between. The hard part is that so much is within the Wordpress core code or within themes/plugins, it’s hard to change, and if I do, it’ll be harder to upgrade them to newer versions down the road. Oh well…made a few changes that may help. Thanks for mentioning the link! Didn’t know that was out there.

Rick Beckman January 13, 2008 at 14:54

Actually, I seem to have gotten a huge boost in performance — the homepage loads anywhere from 3-4 times faster for me — by disabling the Text Link Ads plugin. The pocket change that program brought in each month isn’t worth having a site which creeps along like a sloth!

And yes, it is unfortunate that plugins and the WordPress core output so much to the user, a lot of which is far from optimized. I’ve noticed in the source here at various times close to a dozen CSS declarations — externally linked sheets as well as inline style tags — in the header; the same occurs with JavaScript.

I’ve been toying around with the thought of hacking the plugins in order to get their output more in line with what I’d like, but as you said, that could cause problems when it comes time to upgrade.

Donace January 17, 2008 at 15:10

I found yslow and firebug addon recently as well and had been trying every trick in the book.

In the end i found out that my editing out parts of the template i didn’t need and then streamlining all the html and css and on top the biggest boost giver gziping it all i got the load time (according to http://www.websiteoptimization.com) down from 16.94secs for a T1 1.44Mbps to 2.82secs.

So well chuffed but yslow still gives me a d :( i will be trying to streamline a bit more to squeeze out performance and i look forward to see how much more you can squeeze out.

Lastly a point on plugins my site is based on joomla and i found that looking for the more developed ‘plugins’ that do the same thing created less of a load delay as they were more streamlined and in 99% of the time alot more better at what they do.

Leave a Comment

Previous post:

Next post: