Solved

Gzip performance

Posted on 2014-02-01
4
376 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
 
LVL 1

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 35

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

728 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