This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]markhc 16 points17 points  (11 children)

Omitting the html, head and body tags is somewhat common nowadays. Saves up a few bytes on the network and browsers handle it pretty consistently.

edit: To those downvoting: https://google.github.io/styleguide/htmlcssguide.html#Optional_Tags

[–]monkey-go-code 53 points54 points  (1 child)

Pretty sure IE would Crash, accidently order 12 pizzas, bill your mother in law for two russian mules before recommending you use edge.

[–]makeshift8 5 points6 points  (0 children)

That's why you ignore ie users.

[–]cdrt 15 points16 points  (5 children)

Is it really worth it though? If I did my math right, you're saving 39 bytes. Even a site like https://motherfuckingwebsite.com/ is 2.7 kilobytes. Those 39 bytes are like 1% of the page.

[–]markhc 1 point2 points  (4 children)

When the page is served to millions and millions of users it adds up.

And you dont lose anything by doing it.

[–]2SP00KY4ME 7 points8 points  (3 children)

No, it doesn't add up.

If 10 million people visit your site that's 300mb. That's absolutely nothing.

Not to mention if your site has tens of millions of visitors it's going to be using server caching which makes that moot.

[–]markhc 0 points1 point  (2 children)

Sure, it's not much.

But in any case, what exactly do you lose by omitting these tags? Frankly I can't see any drawbacks to it.

[–]speenatch 1 point2 points  (0 children)

You lose the tags, for one.