[Pro] GZIP Optimisation for a Site

Hello everyone

I did run some speed test on my site by google chrome, I got a result of 62%. One of the major problems is the compression of GZIP. I contacted my hosting provider and they replied me the following:

Add the following code to the very top of your Web pages above the DOCTYPE:

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

Rename the file you want to compress with a .php extension instead of .html or .htm and upload the file to your site. The file will be compressed upon request and delivered to the visitors’ browser.

Well what exactly I should try to rename and where? The speed test indicated this:

Compressing the following resources with gzip could reduce their transfer size by 126.6KiB (68% reduction).
• Compressing http://www.mysite.com/ could save 68.8KiB (84% reduction).
• Compressing http://www.mysite.com/Resources/prototype1205packer.js could save 25.8KiB (55% reduction).
• Compressing http://www.mysite.com/Resources/scriptaculous121packer.js could save 24.3KiB (54% reduction).

Also they said to place the mark up item on top of the page is that ok? I am not good at coding at all.

Cheers

Michael


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try applying Tim Plumb’s Web Fast Action to your pages, and as they recommend, rename them (only change the Filename attribute in the INspector on each page) so that it has the .php rather than the .html extension.

http://www.freewayactions.com/product.php?id=021

Walter

On Oct 5, 2011, at 1:44 PM, Michael Coldereo wrote:

Hello everyone

I did run some speed test on my site by google chrome, I got a result of 62%. One of the major problems is the compression of GZIP. I contacted my hosting provider and they replied me the following:

Add the following code to the very top of your Web pages above the DOCTYPE:

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

Rename the file you want to compress with a .php extension instead of .html or .htm and upload the file to your site. The file will be compressed upon request and delivered to the visitors’ browser.

Well what exactly I should try to rename and where? The speed test indicated this:

Compressing the following resources with gzip could reduce their transfer size by 126.6KiB (68% reduction).
• Compressing http://www.mysite.com/ could save 68.8KiB (84% reduction).
• Compressing http://www.mysite.com/Resources/prototype1205packer.js could save 25.8KiB (55% reduction).
• Compressing http://www.mysite.com/Resources/scriptaculous121packer.js could save 24.3KiB (54% reduction).

Also they said to place the mark up item on top of the page is that ok? I am not good at coding at all.

Cheers

Michael


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well what exactly I should try to rename and where?

They’re saying that for each web page you want compressed you need to change the file extension so in your FW document select each page and change each page from .html to .php.

Then insert the code they gave you by going to Menu > Page > HTML Markup > Before

Todd


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

they said to place the mark up item on top of the page is that ok?

Page>HTML Markup>before HTML

But there is an action for this - WebFast - http://www.freewayactions.com/product.php?id=021

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Initially I added the web fast action, but didn’t change the page speed results. I used also the code provided from my hosting company and changed the home page to php just to test it, but again this didn’t alter the google speed test results. What is changing the results is the compression of the images in the site, so I will play with this a bit. I need to achieve at least score of 70, which is ok for google.

Thank you guys, I always learn something useful here.

cheers


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options