2014年1月26日星期日

Tools_026:使用Yslow评估你的网站

Yslow是内嵌在FireBug中的一个子功能,它是根据雅虎14条法则来评估你的网站的。
关于雅虎14条法则,可以参考《提高网站速度的雅虎14条法则》。

下载地址:https://addons.mozilla.org/en-US/firefox/search?q=YSLOW&cat=all。

我们来看看www.sina.com的得分吧。

1. 总体得分:E (A最高,F最低)

每一项的得分参看左边的列表。
比如:Make fewer HTTP reqeust得分是F,点击后会告诉为什么是这个得分,并给你一些修改建议:
Grade F on Make fewer HTTP requests

This page has 54 external Javascript scripts. Try combining them into one.
This page has 32 external background images. Try combining them with CSS sprites.

Decreasing the number of components on a page reduces the number of HTTP requests required to render the page, resulting in faster page loads. Some ways to reduce the number of components include: combine files, combine multiple scripts into one script, combine multiple CSS files into one style sheet, and use CSS Sprites and image maps.

2. 统计项
会列出该页面有多少个HTTP Request(无缓存情况下,有缓存的情况下)
其中有多少个HTML、JS、CSS、Image等等。


怎么样?相当不错的软件吧,以后就用Yslow来评估你的网站吧。

没有评论: