`
shenjc2008
  • 浏览: 137870 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

网站性能优化七---yahoo网站页面性能优化34条黄金守则---mobile

阅读更多
1.Keep Components under 25K

保持单个内容小于25K


http://developer.yahoo.com/performance/rules.html#under25

这条限制主要是因为iPhone不能缓存大于25K的文件。注意这里指的是解压缩后的大小。由于单纯gizp压缩可能达不要求,因此精简文件就显得十分重要。
查看更多信息,请参阅Wayne Shea和Tenni Theurer的文件“Performance Research, Part 5: iPhone Cacheability - Making it Stick”。

Performance Research, Part 5: iPhone Cacheability - Making it Stick
http://yuiblog.com/blog/2008/02/06/iphone-cacheability/


2.Pack Components into a Multipart Document

打包组件成复合文本


http://developer.yahoo.com/performance/rules.html#multipart

把页面内容打包成复合文本就如同带有多附件的Email,它能够使你在一个HTTP请求中取得多个组件(切记:HTTP请求是很奢侈的)。当你使用这条规则时,首先要确定用户代理是否支持(iPhone就不支持)。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics