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 read the spec a couple of times and it feels like reading legalese but it ultimately says: the value of the
type tag must be that of the body of the
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.
Excellent question! It must either be from old muscle memory habits or when copying a script tag from some other old piece of code.