Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8903563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:54:02+00:00 2026-06-15T01:54:02+00:00

Possible Duplicate: Javascript MIME Type It has been brought to my attention that the

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:54:03+00:00Added an answer on June 15, 2026 at 1:54 am

    According to RFC 2045:

    In general, the top-level media type is used to declare the general type of data, while the subtype specifies a specific format for that type of data. Thus, a media type of "image/xyz" is enough to tell a user agent that the data is an image, even if the user agent has no knowledge of the specific image format "xyz". Such information can be used, for example, to decide whether or not to show a user the raw data from an unrecognized subtype — such an action might be reasonable for unrecognized subtypes of text, but not for unrecognized subtypes of image or audio. For this reason, registered subtypes of text, image, audio, and video should not contain embedded information that is really of a different type. Such compound formats should be represented using the "multipart" or "application" types.

    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 application top-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, the application top-level media type is rather misleadingly named.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Why write <script type=“text/javascript”> when the mime type is set by the
Possible Duplicate: Javascript that executes after page load how to call a javascript method
Possible Duplicate: javascript multidimensional array? Hi guys I need to create an array that
Possible Duplicate: Javascript Variable Variables There's a really handy thing in PHP (that I'm
Possible Duplicate: What does <link> tag do besides including stylesheets? <link rel=stylesheet type=text/css href=example.css
Possible Duplicate: Javascript outer scope variable access I have a javascript module that looks
Possible Duplicate: JavaScript: why does parseInt(1/0, 19) return 18? Why does parseInt(1/0, 19) evaluate
Possible Duplicate: JavaScript Variable inside string without concatenation - like PHP In PHP, double
Possible Duplicate: Javascript force open a link in a browser I am working on
Possible Duplicate: JavaScript: var functionName = function() {} vs function functionName() {} AFAIK, there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.