title: Do I still need to use type='text/javascript'?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2706290/why-write-script-type-text-javascript-when-the-mime-type-is-set-by-the-serve">Why write &lt;script type=&ldquo;text/javascript&rdquo;&gt; when the mime type is set by the server?</a>  </p>
  </blockquote>
  
  
  
  <p>I know that <code>&lt;script type='type/javascript'&gt;&lt;/script&gt;</code> does not need the type attribute anymore. My question is, when inserting scripts myself, do I still need to use it?</p>
  
  <pre><code>var hello = document.createElement('script');
  hello.type = 'text/javascript'; // still needed?
  hello.async = true;
  hello.src = 'http://mysite.com/script.js';
  (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hello);
  </code></pre>
  
  <p>I see that in Google Analytics they still use it <code>ga.type = 'text/javascript';</code> and Disqus use it as well with <code>dsq.type = 'text/javascript';</code></p>
  
  <p>So, is this needed?</p>