[wp-trac] [WordPress Trac] #29196: Set the MIME-Types of JS files to application/javascript

WordPress Trac noreply at wordpress.org
Thu Aug 14 12:02:50 UTC 2014


#29196: Set the MIME-Types of JS files to application/javascript
----------------------------+-----------------------------
 Reporter:  sergej.mueller  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Script Loader   |     Version:  3.9
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  javascript
----------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch
 * version:  trunk => 3.9
 * type:  feature request => enhancement
 * milestone:  Awaiting Review => Future Release


Comment:

 Looks good to me.

 `text/javascript` is obsolete, `application/x-javascript` was
 experimental. `application/javascript` is the recommended type per RFC
 4329.

 However, `application/javascript` is not accepted in IE8 or earlier (per
 [http://en.wikipedia.org/wiki/Internet_media_type#Type_application
 Wikipedia]), not sure what this means for us (technically we still support
 IE7).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29196#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list