主题:Google开发网页的新工具Page Speed -- meokey
Google今天公布了一个网页开发工具,Chrome的网页开发插件Page Speed。这个工具可以帮助网站开发者分析优化网站性能。我试着分析了一下ccthere.com,Page Speed给出了以下的分析,希望对铁手有所帮助。
www.ccthere.com首页
结果相当不错,唯一的优化建议是使用压缩
Compressing the following resources with gzip could reduce their transfer size by 84.1KiB (71% reduction).
Compressing http://www.ccthere.com/boards/ could save 44.3KiB (78% reduction).
Compressing http://www.ccthere.com/incs/rs.php?T=2&V=1 could save 26.9KiB (67% reduction).
Compressing http://pagead2.googlesyndication.com/pagead/show_ads.js could save 7.5KiB (59% reduction).
Compressing http://www.ccthere.com/incs/rs.php?T=0&V=1 could save 3.6KiB (67% reduction).
Compressing http://www.ccthere.com/intr/indexfun.php?DZ=3&T=3&RID=1&SID=0&SA=0&PIDRT=0&Rnd=1301497334999 could save 1.8KiB (59% reduction).
一网打尽
有3个建议:
1. Combine images into CSS sprite
The following images served from ccthere.com should be combined into as few images as possible using CSS sprites.
http://www.ccthere.com/bbsIMG/bf/face1.gif
http://www.ccthere.com/bbsIMG/bf/face5.gif
http://www.ccthere.com/bbsIMG/bf/face6.gif
http://www.ccthere.com/bbsIMG/bf/face7.gif
http://www.ccthere.com/bbsIMG/bf/face9.gif
http://www.ccthere.com/bbsIMG/egg.gif
http://www.ccthere.com/bbsIMG/flower.gif
http://www.ccthere.com/bbsIMG/intop.gif
http://www.ccthere.com/bbsIMG/np.gif
http://www.ccthere.com/bbsIMG/np1.gif
http://www.ccthere.com/bbsIMG/qt.gif
http://www.ccthere.com/bbsIMG/tj.gif
http://www.ccthere.com/bbsIMG/xml.gif
http://www.ccthere.com/incs/help.gif
http://www.ccthere.com/incs/pgn.gif
2. Enable compression
Compressing the following resources with gzip could reduce their transfer size by 91.1KiB (73% reduction).
Compressing http://www.ccthere.com/board/%E4%B8%80%E7%BD%91%E6%89%93%E5%B0%BD/ could save 53.1KiB (80% reduction).
Compressing http://www.ccthere.com/incs/rs.php?T=2&V=1 could save 26.9KiB (67% reduction).
Compressing http://pagead2.googlesyndication.com/pagead/show_ads.js could save 7.5KiB (59% reduction).
Compressing http://www.ccthere.com/incs/rs.php?T=0&V=1 could save 3.6KiB (67% reduction).
The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:
http://www.ccthere.com/bbsIMG/bf/face1.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/bf/face5.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/bf/face6.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/bf/face7.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/bf/face9.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/egg.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/flower.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/intop.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/load.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/np.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/np1.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/qt.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/tj.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/weblogo.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/xml.gif (expiration not specified)
http://www.ccthere.com/incs/help.gif (expiration not specified)
http://www.ccthere.com/incs/pgn.gif (expiration not specified)
http://pagead2.googlesyndication.com/pagead/show_ads.js (1 hour)
http://cache.yoono.com/static/sb/share/green-30.png (4 days 11 hours)
然后,随便树展了一个帖子:
同样,也是给出了以上三个建议
1. Enable compression
Compressing the following resources with gzip could reduce their transfer size by 75.4KiB (72% reduction).
Compressing http://www.ccthere.com/incs/rs.php?T=2&V=1 could save 26.9KiB (67% reduction).
Compressing http://www.ccthere.com/alist/2328783 could save 25.2KiB (80% reduction).
Compressing http://www.ccthere.com/article/2328783.html could save 19.6KiB (72% reduction).
Compressing http://www.ccthere.com/incs/rs.php?T=0&V=1 could save 3.6KiB (67% reduction).
2. Combine images into CSS sprites
The following images served from ccthere.com should be combined into as few images as possible using CSS sprites.
http://www.ccthere.com/bbsIMG/bf/face1.gif
http://www.ccthere.com/bbsIMG/egg.gif
http://www.ccthere.com/bbsIMG/flower.gif
http://www.ccthere.com/bbsIMG/np.gif
http://www.ccthere.com/bbsIMG/np1.gif
http://www.ccthere.com/incs/pgn.gif
3. Leverage browser caching
The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:
http://www.ccthere.com/bbsIMG/bf/face1.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/egg.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/flower.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/load.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/np.gif (expiration not specified)
http://www.ccthere.com/bbsIMG/np1.gif (expiration not specified)
http://www.ccthere.com/incs/pgn.gif (expiration not specified)
http://cache.yoono.com/static/sb/share/green-30.png (4 days 11 hours)
- 相关回复 上下关系6
🙂Google开发网页的新工具Page Speed
🙂我部分使用了yahoo的工具 铁手 字368 2011-04-07 21:44:28
🙂php的话可以通过htaccess文件设定 1 forsake 字483 2011-04-08 16:13:35
🙂这是客户端的,服务器端的mod_pagespeed更厉害 2 鲤鱼奶奶 字240 2011-04-05 23:22:45
🙂回复的目的只是为了顶上去让更多的人看到 昔杨今雨 字0 2011-04-01 07:55:22
🙂这个很好用啊 forsake 字193 2011-04-01 00:42:44