Have you subscribe article via RSS Feed? Subscribe Now..

Sunday, May 3, 2009

Make Joomla Site Load Fast by Optimize GZIP

To speed up your website load time and save your server bandwidth, compression is a quick and efficient way to do that. By adding a piece of PHP code to the top of your Joomla Web pages, you can instruct the Web server to compress files for transit to your visitors' Web browser. This is especially useful for text-heavy Web pages that are over 100k in size.

Let's optimize Your Joomla Site with GZIP Compression

Go to Extension >>Templates Manager
Open your default template and click on Edit Html button

Now, Add the following code to the top and above the DOCTYPE:

<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>

Done.

Note: make sure you have GZIP Page Compression turned on in Joomla Global Configuration >>Server

Now your website load time will decrease significantly for sites that are larger than 100k. For sites that are less than 100k in size, it may not have too much affect on page load time.

6 comments:

Rendy BlogHeboh "Blog Dofollow" said...

Nice infoo..
thanx for share..
hehe..

ceznez said...

bagus2... simpel tapi mengena...

Ani said...

Sering denger Joomla, tapi nggak paham he..he.. dasar gaptek aku ini mas..

dihan said...

nice info..

aalil Belajar SEO said...

wow, nice info bos... siapa tau nanti saya pakai joomla.. ini buat referensi... thanks yah... keep share

Pasa Firaya, ST said...

Berkunjung dan baca infonya, mudah-mudahan bermanfaat bagi banyak orang, sukses IT Indonesia.
I Like Relationship

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Post a Comment