Site Speed: The new Google ranking factor (17,802 views)
Although announced back in November of 2009 (Site Speed, Google’s Next Ranking Factor), it seems like this update has been overlooked by most webmasters, site owners and a lot of SEO-ers.
In a Webmaster Central Blog entry (Using site speed in web search ranking) dated Fri, Apr 9 2010, they finally made it official.
So give your pages a little overhaul and get them up to speed!
Following is a selection of tools and options you can use to increase your page’s speed:
Download and install Google’s Page Speed tool for Firefox and run it to get an idea of what can be optimized.
Install the Web Developer Add-On for Firefox and check the document size (Web Developer > Information > View Document Size):
Or try Zoompf’s performance tester: http://zoompf.com. It returns a long list of issues including solutions.
Chances are all speed testing tools will tell you to enable (gzip) compression if you haven’t already done so.
To check if your site currently has compression enabled, check out GIDNetwork’s web page compression / deflate / gzip test tool: http://www.gidnetwork.com/tools/gzip-test.php
To enable compression, you can either add a couple of directives to your .htaccess file, or add one single line of PHP to your page:
<Files *.htm> SetOutputFilter DEFLATE </Files>
This directive compresses all *.htm files.
To add compression for other file types, simply add more file types to your .htaccess file:
<Files *.css> SetOutputFilter DEFLATE </Files>
If you don’t have access to your .htaccess file or if your server doesn’t support mod_deflate, add this line of PHP code to your page(s):
<? if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
What it does is to check for the presence of "Accept-encoding: gzip" in the request header and returns a gzipped version of the requested file, otherwise it returns the regular (uncompressed) version.
(Note: We don’t have .NET or .ASP or IIS solutions. Please don’t ask.)
If you are using Google Analytics, there is yet another little trick. Have you noticed the new "Asynchronous Tracking" in your Analytics settings? Google announced it in December 2009 (Google Analytics Launches Asynchronous Tracking), and you can find it under Analytics Settings > Profile Settings > Tracking Code
Replace your existing Google Analytics code with the new code and it won’t delay rendering of the page, meaning you can put it in a higher spot in your page’s code.
Tools (Firefox addons – require Firebug):
Web Developer Add-on: https://addons.mozilla.org/en-US/firefox/addon/60