Resource interpreted as other but transferred with MIME type text/javascript? Resource interpreted as other but transferred with MIME type text/javascript? javascript javascript

Resource interpreted as other but transferred with MIME type text/javascript?


The most common way to get the error is with the following code:

<img src="" class="blah" />

A blank url is a shortcut for the current page url, so a duplicate request is made which returns content type html. The browser is expecting an image, but instead gets html.


i received this error due tu a missing element which a jquery plugin tried to call via js var btnChange i commented the none needed (and non existent) images out and the warning (google chrome dev tools) was fixed:

$(mopSliderName+" .sliderCaseRight").css({backgroundImage:"url("+btnChange.src+")"});


The (webkit-based) browser is issuing a warning that it has decided to ignore the mimetype provided by the webserver - in this case text/javascript - and is applying a different mimetype - in this case "other".

It's a warning which users can typically ignore, but a developer might find useful when looking for clues to a problem. For this example it might explain why some javascript wasn't being executed.