application/javascript
The MIME type for JavaScript. Used by HTTP responses to feed `<script>` tags.
Typical extensions
Primary uses
- Serving scripts for web pages
- ES module delivery
- CDN-hosted libraries
In a browser
Loaded and executed via `<script>`; `type=module` treats it as an ES module.
On a server
`Content-Type: text/javascript; charset=utf-8` is the current recommendation; application/javascript is legacy.
In email
Mail clients strip or block `<script>` in HTML bodies.