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

[color=red][b]1.Keep Components under 25K

保持单个内容小于25K[/b][/color]

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

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

[color=olive]Performance Research, Part 5: iPhone Cacheability - Making it Stick[/color]
[url]http://yuiblog.com/blog/2008/02/06/iphone-cacheability/[/url]


[color=red][b]2.Pack Components into a Multipart Document

打包组件成复合文本[/b][/color]

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

把页面内容打包成复合文本就如同带有多附件的Email,它能够使你在一个HTTP请求中取得多个组件(切记:HTTP请求是很奢侈的)。当你使用这条规则时,首先要确定用户代理是否支持(iPhone就不支持)。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章