省略关闭body和html标签的好处? [英] Benefits of omitting closing body and html tags?

查看:98
本文介绍了省略关闭body和html标签的好处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么是

为什么忽略关闭body和html标签?




  • 编辑 - 关于> google.com 主页缺少关闭正文和html标记? >带宽,这是一个非常小的数量,真的。假设有1000万次点击@大约节省了10个字节〜只有100 MB ......除带宽以外还有其他原因吗? 编辑2 - 不可以, google yahoo ,microsoft等等) not w3-validator是否符合... 当涉及到带宽节省en-mass vs w3-compliance时,我想后者对牺牲很好?



解决方案

想想这个网页每天的服务次数。尽管我在谷歌上工作,但请不要将它视为谷歌的官方答复 - 这是一个猜测,但是一个受过教育的人。)


Are there any benefits to omitting the closing body and html tags?

Why is the google.com homepage missing the closing body and html tags?

  • edit - with regards to bandwidth, it's an extremely small amount, really. Say 10 million hits @ roughly 10 bytes saved ~ 100 mb only... Are there reasons other than bandwidth?

  • edit 2 - and nope, google (yahoo, microsoft, and others) are not w3-validator compliant... when it comes to bandwidth-saving en mass vs w3-compliance, I guess the latter's good for the sacrificing?

解决方案

Think of how many times that page is served every day. Even small reductions in size can be significant at that volume of traffic.

(Although I work for Google, please don't treat this as an "official answer from Google" - it's a guess, but an educated one.)

这篇关于省略关闭body和html标签的好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆