A script tag's type in HTML5
10 May 2011
If you look at html5boilerplate.com they never use any type on their
<script> tags. Hmm... but is there more to it?
If the default MIME type for a
<script> tags with a
src attribute? Does the type matter?
I've created 4 different files all serve with a different Content-Type:
And what about spelling mistakes?:
It would be nice if some Windows people can share if it works on Internet Explorer.
type attribute is there for you only for exceptional use cases. Not needed for general use and if you use it and accidentally spell it wrong it will break things.