Feb 1, 2011

HTML5 Quicktip - Cut Out a Few Bytes

Everyone's been talking about all the exciting new features of HTML5, but the little changes sometimes get lost in the fray. You can start using these features now, they are currently supported in all browsers:

No more long doctypes! Save at least 100 bytes per request.
<!DOCTYPE html>

No more long meta tag, content-type and all that. Save a few bytes per request.
<meta charset="utf-8" />

And no need for 'type' tags in script, link, and style tags.
<link rel="stylesheet" href="awesome.css" />
<style></style>
<script></script>

All this can add up to saving a little bit of server resources. And as any web developer knows, a little goes a long way.

Idea for this post taken from a thread I was involved in at indie-resource.com

No comments:

Post a Comment