Solved

Gzip performance

Posted on 2014-02-01
4
371 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
 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

732 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