简体   繁体   中英

Resource interpreted as Script but transferred with MIME type text/x-js

I get this warning only on distant server

Resource interpreted as Script but transferred with MIME type text/x-js

I'm using wamp 2.1 and work correctly

Video not working on distant one I can't use probably htacess if necessary to solve this problem cause it's shared server

Header:

<script type="text/javascript" src="../flowplayer/flowplayer-3.2.11.min.js"></script>
<script type="text/javascript" src="../jquery-1.7.1.min.js" charset="utf-8"></script>
<script type="text/javascript" src="../flowplayer/flowplayer.playlist-3.2.10.min.js"></script>

(I have changed path just for the example)

The order is it important (flowplayer before jquery here)? Or json structure it may be the cause of problem?

That sounds like a warning and not an error. Is it preventing the script from executing?
The error is definetly a server configuration one, so if you can't get someone to fix the server, you'll have to put up with the warning.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM