最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Page Speed Insights + Enable Compression vs Optimize images - Stack Overflow

programmeradmin0浏览0评论

I am using Page Speed Insights 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 pression on the web server , will it not take care of both ?

For Enable pression" 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 pressing images can save many bytes of data." and then gives suggestions like the following :

Losslessly pressing 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" ?

I am using Page Speed Insights https://developers.google./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 pression on the web server , will it not take care of both ?

For Enable pression" 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 pressing images can save many bytes of data." and then gives suggestions like the following :

Losslessly pressing 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" ?

Share Improve this question asked Jun 25, 2012 at 8:27 InquisitiveInquisitive 7,89614 gold badges54 silver badges62 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 6

My question : isn't "Optimize Images " thing a subset of "Enable Compression" ?

No. Images are binary data. Even if apache presses by gzip algorithm it's not what they are refereeing. You need to optimize your image by stripping all the meta data and ments 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.

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 es with a series of suggestions which might not feel right for a website's purpose.

I suggest you both enable pression and optimize images. For the last one, here`s a guide which might help you out https://www.sitepoint./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!

发布评论

评论列表(0)

  1. 暂无评论