Redky

web前端开发/HTML/CSS/JavaScript

Yahoo!网站优化准则35条

with one comment

  1. Minimize HTTP Requests = 减少HTTP请求数
  2. Use a Content Delivery Network = 使用CDN
  3. Add an Expires or a Cache-Control Header = 添加Expires或Cache-Control头信息
  4. Gzip Components = 使用Gzip模块
  5. Put StyleSheets at the Top = 把样式表放在页面顶部
  6. Put Scripts at the Bottom = 把脚本放在页面底部
  7. Avoid CSS Expressions = 避免使用CSS表达式
  8. Make JavaScript and CSS External = 使用外部JavaScript和CSS文件
  9. Reduce DNS Lookups = 减少DNS查询
  10. Minify JavaScript and CSS = 压缩JavaScript和CSS文件
  11. Avoid Redirects = 避免重定向
  12. Remove Duplicate Scripts = 删除重复的脚本
  13. Configure ETags = 配置ETags
  14. Make AJAX Cacheable = 让AJAX请求可被缓存
  15. Use GET for AJAX Requests = 让AJAX请求使用GET方式
  16. Reduce the Number of DOM Elements = 减少DOM元素数量
  17. No 404s = 404响应不要返回内容
  18. Reduce Cookie Size = 减少Cookie大小
  19. Use Cookie-Free Domains for Components = 让组件使用Cookie-Free的域名
  20. Avoid Filters = 避免使用滤镜
  21. Do Not Scale Images in HTML = 不要在HTML中缩放图片
  22. Make favicon.ico Small and Cacheable = 让favicon.ico尽量小且可被缓存
  23. Flush the Buffer Early = 尽早输出服务器缓冲区数据
  24. Split Components Across Domains = 拆分组件到不同的域名下
  25. Minimize the Number of iframes = 减少iframe使用数量
  26. Minimize DOM Access = 减少DOM元素的访问和操作
  27. Develop Smart Event Handlers = 优化事件处理
  28. Choose
  29. over @import = 用
  30. 代替@import
  31. Optimize Images = 优化图片
  32. Optimize CSS Sprites = 优化CSS Sprites
  33. Post-load Components = 组件的延时加载
  34. Preload Components = 组件的预加载
  35. Avoid Empty Image src = 避免让img的src为空
  1. Flush the Buffer Early = 尽早输出服务器缓冲区数据
  2. Split Components Across Domains = 拆分组件到不同的域名下
  3. Minimize the Number of iframes = 减少iframe使用数量
  4. Minimize DOM Access = 减少DOM元素的访问和操作
  5. Develop Smart Event Handlers = 优化事件处理
  1. over @import = 用link代替@import
  2. Optimize Images = 优化图片
  3. Optimize CSS Sprites = 优化CSS Sprites
  4. Post-load Components = 组件的延时加载
  5. Preload Components = 组件的预加载
  6. Avoid Empty Image src = 避免让img的src为空
  7. Keep Components under 25K = (无线设备优化)
  8. Pack Components into a Multipart Document = (无线设备优化)

From: http://www.zsj4.cn/blog/?p=155

Written by jim

七月 16th, 2010 at 2:16 下午

Posted in 推荐文章

Tagged with

One Response to 'Yahoo!网站优化准则35条'

Subscribe to comments with RSS

  1. 呵呵,学习了。

    修远兮

    16 七 10 at 17:31

Leave a Reply