Skip to Content

Free TUAW iPhone app -- try it now!
AOL Tech

Filed under: Developer, Internet, Web services, How-Tos

Speed up your site with PHPSpeedy

Leon Chevalier of Aciddrop.com has just released a free script that can considerably speed-up your website or blog's load time. PHPSpeedy works by making fewer HTTP requests, adding a far-future expires header, Gziping page components and minifying Javascript, CSS and HTML.

The end results are pretty stunning, in Chevalier's test (available at his site), a 271 KB page with 14 requests took 4.44 seconds to load. The same page after the modifications weighed in at 49 KB and just 4 requests, for 1.1s load time.

The latest version of the script includes an installer process that makes enabling the script on your own website for blog very, very easy. We tried it on our own WordPress installation and found the results to be as advertised and the installation process to be worry free.

For more specific WordPress 2.3.x instructions, follow us after the jump.
For WordPress 2.3.x users, installing and enabling the script is very easy.

  1. All you need to do is download PHPSpeedy and extract the file.
  2. Using your favorite FTP or SSH program, upload the php_speedy folder to the same directory as your WordPress installation (which for many people is their root directory, but if you have say a /wordpress directory on your web server, make sure you upload to that location).


  3. Upload the php_speedy folder to your WordPress directory

  4. After uploading the folder, point your browser to http://www.yoursite.com/php_speedy and follow the on screen instructions.
  5. After selecting the optimization options (the default is to enable everything), you will be given two lines of code to insert at the very beginning and the very end of the index.php file that you use for your current theme.
  6. You can use either the WordPress Dashboard or your favorite editor to alter this file. If you use the Dashboard, go to Theme Editor under Presentations and select the Main Index Template for the theme you are using on your site. If you are using FTP, the file is located in the /wp-content/themes/theme-name/ directory.

  7. Insert the first bit of code BEFORE <?php get_header(); ?>


    Insert the second part of the code at the very bottom of the page
We recommend you make a back-up of your entire theme folder before applying the changes to your index.php file, just in case something goes wrong.

For most users, this should be it, your WordPress site should be considerably faster.
jobs & resumes
Lead Blogger

AOL Find a Job - New York, NY (3 weeks ago)

See More Relevant Jobs ›

Reader Comments (Page 1 of 1)

Featured Time Waster

The World's Hardest Game 2.0 - Time Waster

So, just how good at time waster games are you? Think you've got the stuff? Well, The World's Hardest Game 2.0 doesn't think you do. Yes, amazingly, it's possible to have a sequel to a game called "The World's Hardest Game". It doesn't seem logically possible, since if the first one was actually the world's hardest, how could another one come along and share the moniker? It made me doubt the name in the first place. That is, until I tried the game. The mechanics of the game are very simple. You are a small red square, ...

View more Time Wasters

Featured Galleries

Defective by Design, London: Protest Pictures
Microsoft Security Essentials
Chromium Pre-Alpha on CrunchBang Linux
Safari 4 Beta
10 Firefox themes that don't suck
IE8 RC1
Download Squad at the Crunchies After-Party
Download Squad at the Crunchies
WordPress 2.7
Cooking Mama: Mama Kills Animals
Windows 7 Hands On
Comodo Internet Security
Android First-look: Amazon.com MP3 Store
Android First-look: Twitroid
Google Reader Android
Android Hands-On
Twine 1.0
Photoshop Express Beta
Mozilla Birthday Cake
Palm stuff
Adobe Lightroom 1.1

 


Follow us on Twitter!

Flickr Pool

www.flickr.com

More Tech Coverage

AOL Radio

Joystiq

TUAW

Daily Finance

Autoblog

Urlesque

Engadget

WoW

Switched.com

FanHouse