On aminutewithbrendan, brendan eich makes an off hand comment implying that serving scripts as
<script type='text/javascript'></script>
is not correct because "text/javascript" is not a valid MIME type and he states "application/javascript" is a valid MIME type.
I only care about serving HTML5 as the doctype.
- Where are the MIME types for
<script>defined in the html5 W3C specification ? - What is browser support like for
"text/javascript"and"application/javascript"? - Which should be used ? Alternatively should we just not set
typeat all?
Literal Quote from brendan: (1:48)
... or script type equals application/javascript or application/ecmascript, those are the official MIME types or either one of those made-up ones from HTML4 like text/javascript ...
Related:
The union of the related resources doesn't really answer all three questions.
<script></script>afaik.