What MIME type are you suggested to make use of for JavaScript documents?

In the html we constantly make use of (< manuscript type =" text/javascript" charset="utf-8" src ="???" > the ECMA things perplexes some internet browsers yet on the HTTP side what are you suggested to make use of as the Content-Type?

By reaction this would certainly additionally be text/javascript, yet Apache makes use of application/javascript and also Amazon makes use of application/x-javascript.

Some firewall program admins obstruct any kind of MIME kinds matching application/ *; yet which MIME type are you suggested to make use of from a web designer viewpoint? What is the "appropriate" point to do.

2019-05-05 16:52:28
Source Share
Answers: 2

The proper Content-Type is application/javascript

See : What is the Javascript MIME Type? on Stack Overflow

2019-05-08 07:11:20

This page has a checklist of what's approved through which internet browser, as an example :

Opera 7.54+
IE 5+
Firefox 1.0.7+
Safari 2.0.3+
iCab 3 Beta 394
Camino 2006021400

2019-05-08 07:06:41