網站性能優化七---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就不支持)。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章