When I add JavaScript files to web pages, I have always done for example like this:
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript">
// Custom script
</script>
But today I discovered in the response headers that JavaScript are actually served as application/javascript. Why is that? Is both correct? Or should I change one to the other? What's going on here?
scriptelements with MIME-type set toapplication/javascript, and as there are still plenty IE users out there…