秋梦无痕

一场秋雨无梦痕,春夜清风冻煞人。冬来冷水寒似铁,夏至京北蟑满城。

Avatar

Web Performance Best Practices

from: http://code.google.com/intl/zh-CN/speed/page-speed/index.html

Web Performance Best Practices

* Optimizing caching
1. Leverage browser caching
2. Leverage proxy caching

* Minimizing round-trip times
1. Minimize DNS lookups
2. Minimize redirects
3. Combine external JavaScript
4. Combine external CSS
5. Optimize the order of styles and scripts
6. Parallelize downloads across hostnames

* Minimizing request size
1. Minimize cookie size
2. Serve static content from a cookieless domain

* Minimizing payload size
1. Enable gzip compression
2. Remove unused CSS
3. Minify JavaScript
4. Defer loading of JavaScript
5. Optimize images
6. Serve resources from a consistent URL

* Optimizing browser rendering
1. Use efficient CSS selectors
2. Avoid CSS expressions
3. Put CSS in the document head
4. Specify image dimensions

相关阅读:
YSlow
《高性能网站建设指南》
Google的YSlow——Page Speed(附插件下载)
如何提高网页的效率 14条建议(IT168版)
如何提高网页的效率(上篇)——提高网页效率的14条准则
如何提高网页的效率(下篇)——Use YSlow to know why your web Slow
挣脱浏览器的束缚(3) - 两个连接还不够“并行”(老赵的其他几篇相关文章也值得一读)

评论已关闭