Speeding Up Your PHP Web Site
Tools for Improving Performance
Once you have these installed, visit the site you want to improve in Firefox then analyze the page using these tools. These two tools both use similar measures, but there are differences between the two of them.
Google's Page Speed
Firstly, let's take a look at Page Speed. Once the page you want to analyze has loaded, click on the
Analyze Performance button in the Page Speed panel. After a few seconds you will be presented with the results.
You will given a score out of 100, where the higher the number is the better.
While not all tests necessarily apply to your site (and some of the recommended changes may be beyond your control), there will no doubt be several suggestions that you can actually implement.
In any case, all suggestions will at least give the illusion to users that your site is quicker. This can be the difference between them staying on your site and leaving.
Let's now take a look at Yslow. To analyze a page using this tool, load the Yslow panel and click
Run Test. You can specify to automatically run this test whenever a page is loaded, but this may significantly slow down your web browsing.
Yslow will grade the various aspects of the site's performance, where A is good and F is bad.
Just like with Page Speed, click on a topic to get more instructions on how to implement the suggestion.
Another really useful tool which is integrated directly into Yslow is the Smush.it tool. This tool will analyze all images on the current page to try and compress them more than they already are. This is a lossless tool, meaning images don't lose any quality when they are reduced.
To access Smush.it, click on the
Tools tab within Yslow, or visit the Smush.it site at http://www.smushit.com/.