Manual:$wgJsMimeType
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.34.0</tvar>.</translate> |
<translate> Output</translate>: $wgJsMimeType | |
---|---|
Media type (MIME type) to use for JavaScript scripts. |
|
<translate> Introduced in version:</translate> | 1.5.0 (r8895) |
<translate> Deprecated in version:</translate> | 1.22.0 (Gerrit change 64638; git #1f956360) |
<translate> Removed in version:</translate> | 1.34.0 (Gerrit change 522570; git #a8d26127) |
<translate> Allowed values:</translate> | (string) |
<translate> Default value:</translate> | 'text/javascript' |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Details
Use this variable to set the media type (MIME type) which is used for scripts written in the JavaScript scripting language.
See RFC 4329 and MediaWiki bug #2064 for details.
In theory, this should be set to
'application/javascript'
for all new wikis. Standard-compliant browsers support this setting. Internet Explorer from Microsoft does not support it in its current version (version 7).