function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AltranAltran 

Resource interpreted as Script but transferred with MIME type text/html

Hi,

 

We are using JQuery 1.9.1 in a VisualForce page importing it with the following tags:

 

<apex:includeScript value="{$Resource.JQuery_ui_1_9_1_custom_min}"/>
<apex:includeScript value="{$Resource.JQuery_ui_1_9_1_custom}"/>
<apex:includeScript value="{$Resource.JQuery_1_8_2}"/>

<script type="text/javascript" >

....

 

 

In Google's Chrome Developer´s Console we get the warning "Resource interpreted as Script but transferred with MIME type text/html:" and the error "Uncaught SyntaxError: Unexpected token <"

 

The Force.com Static Resources have MIME type application/javascript, why are they being transferred with MIME type text/html?

The javascript stops due to this error and the page is not working the way we want.

 

Can someone please help us with this issue. We have found some similar posts on the net but can´t find any solution.

 

Many Thanks,

Altran 

 

 

 

 

 

Constantin MitidesConstantin Mitides
Hello, did you ever find a solution to this problem? I am having the same issue. 

Thanks