PHP SpeedyFor those who use the Yahoo YSlow plugin for Firebug, speeding up their websites is obviously an issue worth addressing.

There are several ways to increase the speed of page loads. This includes:

  • GZip/Deflate files server-side
  • Add expires headers
  • Minify JS files
  • Compress CSS files
  • CSS sprites for background images

There are several other ways to increase the speed of page loads including caching and reducing HTTP requests.

With this in mind, aciddrop.com has a nifty PHP script that performs multiple tasks. This includes minifying JS files, GZipping files, adding far future expires headers and decreasing HTTP requests.

This plugin will be useful for less tech-savvy users, or those who want a simple PHP-based solution that doesn’t involve delving into the server files or using htaccess files.

The PHP Speedy script is very easy to implement. Simply add the following code to the very top of your pages:

require_once(’class.compressor.php’); //Include the class. The full path may be required
$compressor = new compressor(’css,javascript,page’);

Then add the floowing to the bottom of the page:

$compressor->finish();

To download the script click here. For more details and advanced features visit acidpro.com.

del.icio.usDigg itNewsvineRedditStumble Upon