How to Make a WordPress Blog Run Faster

Trying to make WordPress go faster

FASTER! FASTER, dammit!

Optimizing WordPress using a CDN (Content Delivery Network)

My blog had been running, if that’s what you could call it, at speeds approximating a gimpy turtle walking in mud uphill… you get the idea. So I started investigating the technical methods used by pro web developers to make their blogs load fast.

Tools for Blog Development

Every construction project / art project / whatever project requires the use of the right tool for the right job. For some time, I’ve been using shared hosting on Network Solutions, and it has done a pretty good job. Working from large to small, I have had success (limited by my lack of knowledge, thus the “experiments” in the blog title) with the following development setup:

  • My trusty old iMac G5 17″ 1.8Ghz single processor w/ 2Gig RAM OSX 10.5.8
  • nsHosting (Network Solutions)
  • WordPress, now at v. 2.8
  • Firefox w/ Firebug and PageSpeed (Google‘s entry into the optimization analysis competition) AND YSlow (from Yahoo!, which I just discovered and like better for a slacker like me)
  • Cyberduck
  • Adobe CS3 (mostly Photoshop, but some CSS testing with Dreamweaver)
  • Smultron, the absolute best text editor for web work I’ve ever come across

Blog optimization 2.0

I have some time on my hands, and one of my goals with this blog is experimenting, so I started looking at the analysis from PageSpeed. I learned several things, some of which can be applied easily to the blog and others, not so much.

For instance, gzip compression on the server side would supposedly decrease load times for all the JS and CSS contained on this page, which comprise a total of about 150K. But, since this is running on shared hosting, no dice.

I like images in my articles. A LOT. Maybe too much. I write content as an excuse to attach images, I think. It’s fun, plus I’m a prepress/graphics guy and I am a huge fan of Zemanta. I gotta have pictures in here. Unfortunately, the images in the blog were weighing it down.

I had a dynamic script from Google Insights for Search about print on demand and marketing, which ended up loading a script and an image every time the page loaded, so I had to get rid of it. It felt good, reeeeal good! So I started hacking out other worthless html lookups/scripts from other sources.

Eventually, I got the thing to load about three times faster. Just getting rid of the Google stuff (I deleted an entire post that it didn’t look like anyone was reading, so no biggie) saved abunch of load time. But I was just getting started, I had become like a man possessed, unable to stop myself on a quest to make this stupid blog load as instantaneously as I possibly could!

A Google search and looking for performance optimization plug-ins on WordPress led me to several false starts with caching plug-ins and various other code tweakers and rough hax with limited success. Then I found a plug-in called W3 Total Cache.

W3 Total Cache and the CDN

W3 Total Cache solves several problems for me, except one. The analysis from PageSpeed and YSlow recommend the webmaster use gzip compression on the server side. Using a shared hosting environment like mine doesn’t allow this, I’d have to pay extra. Since this is my hobby not an income producing exercise I’m not doing that (yet).

BUT, W3 Total Cache allows something really useful in addition to cleaning and optimizing the code that WordPress generates: importing your Media Library to a Content Delivery Network (CDN). Setting the CDN up is a different post, but it was very simple even for me. I’m not a developer. Basically, now all of the images are pulled off of the server hosting WP and distributed across an array of servers and networks that will deliver images and other files to your browser in parallel, spreading the load out and dumping the bandwidth off on someone besides Network Solutions.

Load times decrease massively

Overall, I’ve made the main blog load almost 8x faster. And I have more to do, and more posts about optimization, especially setting up the CDN. Let me know in a comment if you have some optimization tips!

Reblog this post [with Zemanta]
This entry was posted in Blogs, Bloggers and Blogging and tagged , , , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

9 Comments

  1. Posted September 19, 2010 at 8:26 am | Permalink

    Very informative. I search for this problem and your thoughts here really solve what I am looking for. Thanks.

  2. Posted May 17, 2010 at 7:22 pm | Permalink

    I just wanted to stop by an say that you really helped me because my blog was way too slow. Once I made the changes it is now much quicker and loads way faster. Thanks again

    • Posted May 7, 2011 at 12:06 pm | Permalink

      Thanks for the artcicle. Really helpful!

  3. maxSeagetah
    Posted January 3, 2010 at 8:33 am | Permalink

    Thanks for the informative information – I enjoyed reading it! I always enjoy this blog. :) Cheers

  4. Posted November 15, 2009 at 12:21 pm | Permalink

    Thank you for this superb post. But I had difficult time navigating around your web site as I kept getting 502 bad gateway error. Just thought to let you know.

  5. Posted November 4, 2009 at 10:13 pm | Permalink

    I recently came across your blog and have been reading along. I thought I would leave my first comment.Nice post! http://transcendmemorycards.net/

  6. Posted November 4, 2009 at 3:17 pm | Permalink

    : Hi Jeff, so glad to hear that you are pleased with Network Solutions and sounds like you are having a blast with your blog. Have you checked out some of our blogging best practices and other social media smart tips on http://www.solutionsarepower.com? Please let us know if there is anything Network Solutions can help you with.

    Shashi Bellamkonda

  7. Frederick Townes
    Posted November 4, 2009 at 12:56 pm | Permalink

    W3TC will HTTP compress your pages and CSS / JS regardless of what your hosting provider offers.

One Trackback

  1. By How to Make a Wordpress Blog Run Faster on November 3, 2009 at 8:44 pm

    [...] more here: How to Make a WordPress Blog Run Faster Comments0 Leave a Reply Click here to cancel [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Bear