Solved

Gzip performance

Posted on 2014-02-01
4
363 Views
Last Modified: 2014-02-02
When I run the audit of chrome it says:

Compressing the following resources with gzip could reduce their transfer size by about two thirds (~58.3¿KB):

Do you believe does  it worth to make a necessary change? If I do it do the users will feel the difference?

Thank you
0
Comment
Question by:myyis
  • 2
4 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 39826706
That is probably Not what you think it is.  It does not mean that You should Gzip the files but that the server should Gzip the transmission if the browser puts 'gzip' in it's 'accept' line in the request headers.  You can go to this site to see if your server is providing compression when requested: http://www.whatsmyip.org/http-compression-test/   If it is Not, then you have to tell the server to do it.  Gzipping the files yourself will just confuse the process.
0
 

Author Comment

by:myyis
ID: 39826710
I did the test,
says  "is NOT Compressed"

Page Size: 82.3 KB
Compressed Page Size: 22.4 KB
Potential Savings: 72.8%
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39826714
I suggest you contact your hosting company and ask them to enable compression.  Apache and IIS web servers have different methods of doing that.
0
 
LVL 34

Assisted Solution

by:gr8gonzo
gr8gonzo earned 250 total points
ID: 39826786
Like Dave mentioned, gzip compression on web pages means something a little different. Basically, after the HTML (or whatever content) is loaded up into memory, the web server can then compress the contents and THEN send the compressed version to the browser. Almost all modern browsers have the ability do decompress the data and then handle the normal, decompressed stuff as if the compression had never happened.

There are two common downsides to gzip compression on web pages:

1. It eats up a little bit of CPU on the server because it requires the CPU to run the compression algorithms before the data can be sent.

2. Compression requires the ENTIRE page to finish being generated on the server before it can start (because compression is about analyzing the full contents to figure out the best way of compressing it), and it also requires the FULL file to be downloaded before decompression can start, so this means you can't stream gzipped compressed content. It has to finish loading, finish compressing, finish downloading, and finish decompressing before the browser sees any HTML at all.

Of course, if you have any bandwidth limitations on your account, then compression can definitely help you conserve that bandwidth (which is also usually good for the internet as a whole, too).
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to properly use session_regenerate_id when user logs in 7 41
how can i gnupg encrypt a PDF document? 12 33
mysql date time 14 31
How do I fix this UPDATE error? 7 24
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question