Benefits of omitting closing body and html tags?

后端 未结 7 1772
无人共我
无人共我 2020-12-30 21:42

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 - wit

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-30 22:01

    You're thinking of that as a standalone thing. If they've done several different things that save bandwidth then it all adds up. Each one might not be significant on it's own but if they have 5 or 10 optimisations then it's significant in total.

    Also, those ten bytes may well reduce the data size enough to make it take one less TCP/IP packet which will have significantly higher savings that simply reducing the size of one.

提交回复
热议问题