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:
Nice infoo..
thanx for share..
hehe..
bagus2... simpel tapi mengena...
Sering denger Joomla, tapi nggak paham he..he.. dasar gaptek aku ini mas..
nice info..
wow, nice info bos... siapa tau nanti saya pakai joomla.. ini buat referensi... thanks yah... keep share
Berkunjung dan baca infonya, mudah-mudahan bermanfaat bagi banyak orang, sukses IT Indonesia.
I Like Relationship
Post a Comment