MakeTechEasier
  • Home
  •  
  • About
  •  
  • Archives
  •  
  • Jobs
  •  
  • Advertise
  •  
  • Contact Us
  • Windows
  • Linux
  • Mac
  • Internet
  • WordPress
  • iPhone
  • Android
  • All Categories
    • Android RSS
    • Firefox RSS
    • Gaming RSS
    • Google RSS
    • google chrome RSS
    • Internet RSS
    • iPhone/iPod Touch RSS
    • Linux RSS
    • Mac RSS
    • Mobile RSS
    • OpenOffice RSS
    • PC Hardware RSS
    • Review RSS
    • Roundup RSS
    • Windows RSS
    • Windows Mobile RSS
    • WordPress RSS
    • WordPress Plugins RSS
  • rss icon
  • email icon
  • facebook icon
  • twitter icon

8 Ways To Improve Your WordPress’s Loading Time

Posted by: Damien on January 21st, 2009
  • 14 Comments
  • Share

stopwatchIf you have been blogging for quite a while, you will find that as your traffic increases, your blog’s loading time become slower and slower. This could be due to inefficient coding, too many images (or advertisement) or just that you have activated too many plugins that take up your valuable server resources. If the above is true for you, then it is time for you to do some spring-cleaning and start to streamline and optimize your site.

Here are 8 ways that you can use to improve your site loading time.

1. Reduce the number of images and image size in your site

Images take up a lot of bandwidth and can slow down the page’s loading time to a great extent. One of the best way to reduce loading time is to reduce the number of images in your site.

There are main two types of images that most WordPress blogs contain: theme images and post images. Theme images are those images that are used in the theme. These can be the header images, the small bullet images you use for any list, the small icon beside the comment link and many more. If you are not the designer of your theme and you know nuts about coding, there is really nothing much that you can do. You can either live with it or change your current theme to one that uses lesser images. For those with some coding knowledge, you can use CSS Sprite to combine several images into one big image and use CSS background-position to shift the image around (more detail here).

Post images are images that you inserted into your posts to illustrate your points or to beautify the post. If possible, reduce the number of images used in the post (not more than 5). If your site is a tutorial blog that uses plenty of screenshots to get your points across (just like Make Tech Easier), the best way out is to optimize and compress the images before posting them in your site. Adobe Photoshop has this “Save for Web” function that you can use to optimize/compress your images easily. Most free image editors (such as GIMP) also provide you with the option to compress your images. Online tools such as online image optimizer and JPEGWizard are also great tools you can use to reduce the filesize of your images.

2. Split up long post into multiple short pages

If you are in the habit of writing long posts (more than 1500 words), it is best to split the post into several small pages. Not only does it leads to a faster loading page, it is also easier for your visitors to read and digest. In WordPress, you can easily split your post with the  <!--nextpage--> tag. Read here for more detail.

3. Upgrade to the latest version of WordPress and plugins

It is important that you update your WordPress and all your plugins to the latest version. The WordPress team is working hard to make sure that every release of WordPress has a better performance than the previous version. The only way for you to make use of their effort is to follow the development cycle closely and update whenever a newer version is available.

4. Deactivate unused plugins

Most of the plugins introduce extra javascript and css file to your site and choke up your bandwidth. If you have no use for any of the plugins, make sure you deactivate them and get rid of those miscellaneous javascript and css. You’ll be surprised how much faster your site will load when these unused plugins are not around.

In addition, check out your existing list of active plugins and see if any of those have overlapping features with the latest version of WordPress. For example, prior to WP2.7, I used the Admin Management Xtended plugin to better manage all the administrative tasks. With the release of WP2.7, most of the features in the plugin are integrated into the software itself, which means I can now retire the plugin and free up the valuable resources.

You may also want to check out the WordPress plugin repository regularly for any other plugins that can do the same function as your existing plugins, but have better performance.

5.  Install WP-SuperCache

If there is one plugin that you must keep, it have to be WP-SuperCache. The SuperCache plugin caches your page as a static html file. When your visitors arrive at your site, they will be served the static page instead of the actual page.

If your Web host can support compressed file, you can further improve your site loading time simply by checking the Enable Compression feature within the SuperCache option page. When this option is turned on, the static html will be compressed as a gzip file, making the filesize even smaller.

(Note that the compression feature might not work for everyone. Some have reported problems with different browsers. Please test it thoroughly before using it live)

supercache-compress

6. Streamlining your theme

Your theme (especially header.php and footer.php) contains a lot of redundant dynamic content that can easily take up valuable server resources. You can easily streamline it to reduce the number of php and database queries.

Here is an example of how you can streamline your code. Log in to your Admin dashboard. Go to the theme editor section and load up the Header file. You should see something like this (without the color coding):

header-screenshot

(Screenshot taken from classic theme header.php in a html editor. Depending on the theme that you are using, result may vary.)

Here is how I change some of the dynamic content (<?php …. ?> tag) into strings of text. Also, look how I have reduce the number of items in the header file.

header-after-streamlining

By streamlining your theme, the site won’t have to keep going back to the server to query the database, thus the time taken to load will also be faster.

7. Add Expires header to static resources

One of the great way to improve your site loading time is to add an Expires header to all your static resources (such as css file, javascript, images etc).  An Expires header is a way to specify a time far enough in the future so that the clients (browsers) don’t have to re-fetch any static content. Here is an example of how you can add Expires header to all your images.

Download your .htaccess file from your server.

Add the following lines to the file:

ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/png AA2592000
ExpiresByType image/jpg AA2592000
ExpiresByType image/jpeg AA2592000

The A2592000 means that the cache file will expire one month (in seconds) from the time the visitor first visits your site.

8. Install php_speedy

From the above, you can see that I did not mention anything about compressing and minify your CSS and javascript files. That is because php_speedy has all of them covered.

PHP Speedy is a WordPress plugin that optimizes your site and reduces the loading time of all your pages greatly. What it does is to compress and minify all your CSS and javascript files, set expiration-header for CSS and JS file, streamline the html tag and cache it in the server for quick loading.

What other ways do you use to improve your site’s loading time?

Image credit: Purplemattfish


Damien Oh is the owner and chief editor of Make Tech Easier

Tags: performance, WordPress
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Share and Enjoy!

  • Rss feed
  • StumbleUpon It!
  • Del.icio.us
  • reddit

Related Posts

  • WordPress 2.6 Beta 2 Review
  • WordPress 2.6 Theme Changing Issue
  • Understanding WordPress Theme: The Basics of Creating Your Own WP Theme
  • The Safe Way to Change your WordPress Database Table Prefix
  • WordPress: How to Separate Pingbacks From Comments

Popular Posts

  • Turn Your Ubuntu Hardy to Mac OSX Leopard 498 comment(s)
  • Turn Your Ubuntu Intrepid Into Mac OSX Leopard 311 comment(s)
  • 28 Coolest Firefox About:Config Tricks 122 comment(s)
  • How To Boot And Install Windows 7 From USB Flash Drive 122 comment(s)
  • Best 101 Free Computer Software For Your Daily Use 101 comment(s)

Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.

Enter your email:

7 pingbacks/trackbacks (Click to open)

  • 8 Ways To Improve Your WordPress’s Loading Time - Make Tech Easier : PluginZilla
  • WP Content Aggregator » Blog Archive » Open source Customization » Blog Archive » WordPress Plugin …
  • HowtoMatrix » 8 Ways To Improve Your WordPress’s Loading Time
  • 8 sätt att förbättra laddningstiden för er WordPress blogg! | ZtrixQ.se
  • 50+ Different Ways To Vastly Improve Your Wordpress Blog | Web Media Magazine
  • o tech!: how to reach the masses « Read Write Poem
  • 3 Useful Tools To Optimize your Blog’s CSS – Make Tech Easier
[Click to close]

14 Responses

  • boyin says:
    January 22, 2009 at 9:06 am

    thanks for the info. is php speedy plugin can be use into wp 2.7?

    Reply
    • Damien says:
      January 22, 2009 at 2:31 pm

      Yes. You can download the latest version here

      Reply
  • Richie says:
    January 27, 2009 at 7:56 pm

    Is it true that using supercache will mess up any auctions like ebay you may have on your site by showing the cached version which quite probably are already finished?

    Reply
    • Damien says:
      January 28, 2009 at 1:01 am

      If you are using javascript code for the ebay auction, the supercache plugin shouldn’t have any effect on the auctioned price.

      Reply
  • Adney says:
    June 2, 2009 at 7:11 am

    It’s not work with my theme.. May be i’m not understand this plugin. BTW, thanks in advance with this superior plugin
    I’ll try to configure it later

    Reply
  • Atul says:
    June 28, 2009 at 4:51 pm

    nice list

    Reply
  • Jim says:
    August 16, 2009 at 7:17 pm

    Thank you for the excellent list of very helpful tips! Do you know whether php speedy works with WordPress 2.8.4?

    Many thanks,

    Jim

    Reply
Cancel reply

Leave a Comment




Comment

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again

write for MTE

Latest Posts

  • OfficeMedium – A Social Collaboration Platform For The Small Business + Free Promotions
  • MakeTechEasier Is Now Hosted On KnownHost
  • KTorrent: KDE’s BitTorrent client
  • How to Create a Customized Toolbar for Your Browser
  • 13 Ways To Customize Ubuntu Netbook Remix For Better Usability

Our Writers

  • Damien Oh - Chief Editor
  • Sharninder - Geeky Ninja
  • Joshua Price
  • Tavis J. Hampton - Lantern Torch
  • Shevonne Polastre - FreeAgentWriter
  • Trevor Dobrygoski
  • Soumen Halder - Ampercent
  • Tanmay Ahmed - Tech-Tips-Geek
Make Tech Easier on Facebook
Jobs by SimplyHired
Job Widgets

Copyright

All the articles (including the text, images and tutorials) are properties of MakeTechEasier.

You cannot copy whole tutorials, either in English or translate to another language without our permission.

Write for us

Writing a tutorial or article for MakeTechEasier is a great way to get exposure and give back to the community.

Read More Details

Suggestions

We need your help to help us serve you better! This is YOUR site, so if you have suggestions/feedbacks on how we can improve it for you, please let us know! We do our best to make this place better!

Make a Suggestion

Navigation

  • Home
  • About Us
  • Advertise
  • Archives
  • Contact Us

Copyright © 2007-2010 Make Tech Easier | All Right Reserved.