谷歌YSlow准则
23条准则
Make fewer HTTP requests
YSlow可以对网站的页面进行分析,并告诉你为了提高网站性能,如何基于某些规则而进行优化。
测试个人站点通过测试个人站点可以获得下面的数据
Make fewer HTTP requests
译为:减少HTTP请求次数
Use a Content Delivery Network (CDN)译为:使用CDN
Avoid empty src or href译为:避免空的src和href
Add Expires headers译为:为文件头指定Expires
Compress components with gzip译为:使用gzip压缩内容
Put CSS at top译为:把CSS放在顶部
Put JavaScript at bottom译为:把CSS放在顶部
Avoid CSS expressions译为:避免使用CSS表达式
Make JavaScript and CSS external译为:将CSS和JS放到外部文件中
Reduce DNS lookups译为:减少DNS查找次数
Minify JavaScript and CSS译为:压缩js与css文件
Avoid URL redirects译为:避免跳转
Remove duplicate JavaScript and CSS译为:删除重复的JS和CSS
Configure entity tags (ETags)译为:配置ETags
Make AJAX cacheable译为:可缓存的AJAX
Use GET for AJAX requests译为:使用GET来完成AJAX请求
Reduce the number of DOM elements译为:减少DOM元素数量
Avoid HTTP 404 (Not Found) error译为:避免404错误
Reduce cookie size译为:减少Cookie的大小
Use cookie-free domains译为:使用无cookie的域
Avoid AlphaImageLoader filter译为:不要使用滤镜
Do not scale images in HTML译为:不要在HTML中缩放图片
Make favicon small and cacheable译为:缩小favicon.ico并缓存