Possible Duplicate:
Javascript MIME Type
It has been brought to my attention that the MIME type text/javascript is deprecated in favour of application/javascript. Wikipedia seems to confirm this. However, Javascript is distributed in source form, i.e. text. The term application sounds to me like a compiled binary. In fact, modern Javascript interpreters do in fact perform JIT compilation on the source text, thus producing an application, thus implying that the source text itself was not an application. So why is it preferred to use the application/javascript MIME type?
According to RFC 2045:
Edit
So although JavaScript is indeed text, it’s also a "registered subtype of text containing embedded information that is really of a different type", and therefore requires the
applicationtop-level media type as defined by that RFC.There are many
application/...MIME types which are not "applications" (executable binaries or code), eg:application/zip(for Zip archives). So in this sense, theapplicationtop-level media type is rather misleadingly named.