JavaScript (deprecated alias)

application/javascript

Extensions
.js
Compressible
yes
Charset
UTF-8
Status
de facto

A deprecated alias: the type RFC 4329 crowned in 2006 and RFC 9239 dethroned in 2022. It lingers in mime-db by way of Apache's legacy list and in countless server configs, and browsers will execute scripts under it forever — but the registered type for JavaScript is text/javascript, and new configuration should say so. See text/javascript for the full story.

Defined by RFC 9239. Registry facts from the IANA media-types registry via mime-db.