- 1、本文档共69页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Google在Web前端方面的经验(青苹果)解读
Data source: Steve Souders * Newer browsers (IE8, Saf4, Chr2) work, but mainstream browsers need a workaround. * Newer browsers (IE8, Saf4, Chr2) work, but mainstream browsers need a workaround. * putting code in the script block doesnt work in any browser; you have to add stuff to the external script this doesnt load asynchronously * Newer browsers (IE8, Saf4, Chr2) work, but mainstream browsers need a workaround. * Newer browsers (IE8, Saf4, Chr2) work, but mainstream browsers need a workaround. * loadInterval is 420 ms * Joseph Smarr from Plaxo advocates interspersing setTimeout through JavaScript threads every n00 ms. * Data source: Steve Souders * 72 years = 2,270,592,000 seconds = 500ms * 4.4B page views * 72 years = 2,270,592,000 seconds = 500ms * 4.4B page views * 72 years = 2,270,592,000 seconds = 500ms * 4.4B page views * 72 years = 2,270,592,000 seconds = 500ms * 4.4B page views * * thank you by nj dodge: /photos/nj_dodge/187190601/ flush the document early gotchas: PHP output_buffering – ob_flush() Transfer-Encoding: chunked gzip – Apaches DeflateBufferSize before 2.2.8 proxies and anti-virus software browsers – Safari (1K), Chrome (2K) other languages: $| or FileHandle autoflush (Perl), flush (Python), ios.flush (Ruby) html image image script html image image script call PHPs flush() flushing and domain blocking you might need to move flushed resources to a domain different from the HTML doc html image image script html image image script google image image script image 204 case study: Google search blocked by HTML document different domains takeaways focus on the frontend run YSlow: /yslow this years focus: JavaScript speed matters impact on revenue Google: Yahoo: Amazon: 1 /~glinden/StanfordDataMining.2006-11-29.ppt 2 /stoyan/yslow-20-presentation +500 ms ? -20% traffic1 +400 ms ? -5-9% fulltraffic2 +100 ms ? -1% sales1 cost savings hardware – reduced load bandwidth – reduced response size /share/presentations/2008/stanford/HPWP-RealWorld.pdf
文档评论(0)