Skip to Content

Make smart financial decisions with DailyFinance
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.

Reader Comments (Page 1 of 1)

Featured Time Waster

Civiballs is a beautiful, soothing physics puzzle Time Waster

CiviballsI have an absolute weakness for physics games, and while Civiballs isn't the strongest physics-based game, what it lacks in the physics department it makes up for a few times over in style and fun.

In Civiballs, you are presented with a few colored balls, and your goal is to get those balls into the same-colored urn on the level. The "civi" part of Civiballs is that there are 3 sets of levels to play, each representing a different civilization. While the civilization doesn't affect gameplay, the artwork for each level is beautifully themed to it's appropriate era.

To play the game, you are given only one tool - a sword with which to cut the chains that are holding the balls. The puzzle part of the game is in figuring out what order, and with what timing to cut each chain. Do it right, and all the right balls end up in the right urns, with no stray balls entering an urn (a no-no). Do it wrong, and you get to start over again.

Civiballs is not terribly deep on gameplay; the entire game can be completed in about 15 minutes. But if you enjoy this type of game, it will be a very enjoyable 15 minutes.

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

Download Squad bloggers (30 days)

#BloggerPostsCmts
1Lee Mathews7979
2Brad Linder684
3Jay Hathaway671
4Jason Clarke312
5Grant Robertson912
6Christina Warren29
7Nik Fletcher20

More Tech Coverage

AOL Radio