application/x-javascript

195 views
Skip to first unread message

Wuping Lu

unread,
Nov 26, 2008, 11:06:22 AM11/26/08
to cs193...@googlegroups.com
Hi,

I remembered someone asked a question regarding
"application/x-javascript" in one of the earlier classes. Here is what
I found:

The traditional MIME type for JavaScript programs is
"text/javascript". Another type that has been used is
"application/x-javascript" (the "x" prefix indicates that it is an
experimental, nonstandard type). RFC 4329 standardized the
"text/javascript" type because it is in common use. However, because
JavaScript programs are not really text documents, it marks this type
as obsolete and recommends "application/javascript" (without the "x-")
instead. At the time of this writing, "application/javascript" is not
well supported, however. That might be the reason why
"application/x-javascript" is used by a lot of webpages.

Hope this information helps.

Wuping

Reply all
Reply to author
Forward
0 new messages