1、yslow介绍
什么是YSlow?
YSlow是Yahoo发布的一款基于FireFox的插件。 YSlow有什么用? YSlow可以对网站的页面进行分析,并告诉你为了提高网站性能,如何基于某些规则而进行优化。 YSlow可以分析任何网站,并为每一个规则产生一个整体报告,如果页面可以进行优化,则YSlow会列出具体的修改意见。
2、安装
第一步,安装firefox中的firebug插件,然后再附件插件中选择yslow插件,并重启firefox
3、使用YSLOW
工具-web开发者,打开firebug
- Open the Firebug window and click on the YSlow tab.
- Click the YSlow button on the status bar.
The first time you bring up Firefox with YSlow, the following screen will be displayed in the Firebug portion of the browser window:
4、推荐理由
关于js文件的提示:
“
JavaScript scripts block parallel downloads; that is, when a script is downloading, the browser will not start any other downloads. To help the page load faster, move scripts to the bottom of the page if they are deferrable.
”
关于CDN提示“
Grade F on Use a Content Delivery Network (CDN)
There are 153 static components that are not on CDN.
You can specify CDN hostnames in your preferences. See YSlow FAQ for details
”
cookie的提示“
HTTP cookies are used for authentication, personalization, and other purposes. Cookie information is exchanged in the HTTP headers between web servers and the browser, so keeping the cookie size small minimizes the impact on response time.
5、使用帮助
http://developer.yahoo.com/yslow/help/#using_yslow
”
作者:无名程序员
blog:wmcxy.iteye.com
转载请注明原作者,谢谢配合!