One of the quickest ways to increase web performance is to enable GNU Zip (gzip) for our assets. It's a file compression format that can reduce the size of our HTML, CSS, and JavaScript assets by up to 70 percent. It only takes a couple of minutes to be enabled. In this recipe, you'll learn how this can be done.
Before adding gzip to our application, it can be interesting to run a benchmark so that we can compare our application before and after the change.
We can do this in our browser with YSlow. For installation instructions, visit https://developer.yahoo.com/yslow/.
Once installed, we can run a test and then click on Statistics to see a pie chart that shows our page weight.
Running this before and after will show what a huge impact gzip has on web performance.