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