Reputation: 7836
I am using Page Speed Insights https://developers.google.com/speed/pagespeed/insights_extensions for analyzing the page load time of our web app. The results displayed both Enable Compression and Optimize Images as todo's under High Priority section. If I enable gzip compression on the web server , will it not take care of both ?
For Enable compression" Page speed says "Compressing resources with gzip or deflate can reduce the number of bytes sent over the network."
For Optimize images Page Speed says "Properly formatting and compressing images can save many bytes of data." and then gives suggestions like the following :
Losslessly compressing someImage.jpg
could save 22.1KiB (95% reduction) and also provides a link to show the optimized content.
My question : isn't "Optimize Images " thing a subset of "Enable Compression" ?
Upvotes: 2
Views: 3600
Reputation: 131
The goal with any website is to make it load as faster as possible. Google Page Speed Insights is just a tool which can't tell what the website is for, but it comes with a series of suggestions which might not feel right for a website's purpose.
I suggest you both enable compression and optimize images. For the last one, here`s a guide which might help you out https://www.sitepoint.com/optimizing-images-for-the-web-with-photoshop/
Again, it`s about making a website as user-friendly as possible and google will reward it properly!
Upvotes: 1
Reputation: 57650
My question : isn't "Optimize Images " thing a subset of "Enable Compression" ?
No. Images are binary data. Even if apache compresses by gzip algorithm it's not what they are refereeing. You need to optimize your image by stripping all the meta data and comments from it. This will loose some bytes. And the original size of the image will be much lower.
Here is the relevant tip from Yahoo.
Upvotes: 6