Debug message "Resource interpreted as other but transferred with MIME type application/javascript"
Solution 1:
An image with an empty "src" attribute generates this error under Windows-Chrome:
<img src="">
... whereas ...
<img>
... does not.
I arrived here because my ajax resultset was returning "src" data which was empty yet the img was still being inserted into the page.
Solution 2:
Solved!
I have had this error for several days. It was driving me crazy because it didnt allow me to use firefox firebug's script debugger. Finally, my error was solved when I removed an empty url in a "background-image: url()" style property.
This has been so much a pain than I really hope somebody can use this advice.
Solution 3:
I don't think it is a bug, Try adding the MIME type to your .htaccess file For instance, put or add the following content to your .htaccess file (which should be in the same place of your .js or above folders)
#JavaScript
AddType application/x-javascript .js
This solved my tree "Resource interpreted as other but transfered ... " warnings. Everytime you have that kind of warning it means you don't have enough info in your .htaccess file.
BTW1: Since you are modifying .htaccess file, make sure you restart your server.
BTW2: I also could clear same warnings for GIF files in Safari 4 with this:
#GIF
AddType image/gif .gif
BTW3: For other file types: see w3schools list or htaccess-guide
Solution 4:
seems to be a bug in safari / webkit. maybe this one, or any of these. try upgrading your safari. if there is no more recent stable version, try the 4 beta.
Solution 5:
This warning appears because no default script type is specified. Try adding the following directive to your HTML file:
<meta http-equiv="content-script-type" content="text/javascript">
You can read more about default scripting specifications here: http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.2.1