javascript - Scripts gets interpreted as Stylesheet but transferred with MIME type text/html -


i'm getting 2 console warnings in chrome:

resource interpreted stylesheet transferred mime type text/html: "http://domain/". domain/:11 resource interpreted stylesheet transferred mime type text/html: "http://domain/". domain/:11 

on line 11, have:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>  

here's of code head section:

<head> <meta charset="utf-8"> <title>laoautod</title>  <meta http-equiv = "content-type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="css/base.css"> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>  <script type="text/javascript" src="js/center.js"></script> <script type="text/javascript">     function displayresult()                     {         var x=document.getelementbyid("checkbox").defaultchecked;         alert(x);                     } </script> <script type="text/javascript">    var _gaq = _gaq || [];   _gaq.push(['_setaccount', 'accountid']);   _gaq.push(['_trackpageview']);    (function() {     var ga = document.createelement('script'); ga.type = 'text/javascript'; ga.async = true;     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';     var s = document.getelementsbytagname('script')[0]; s.parentnode.insertbefore(ga, s);   })();  </script> </head> 

the html code inside index.php file added header('content-type: text/css'); in beginning of pages script. included addcharset utf-8 .css .js , addtype text/css .css in .htaccess file no luck loosing warnings.

what causing , how rid of warnings?

okay, found problem.

the reason getting warnings because using @import in base.css bring in scripts not in location. precise, missing 2 scripts, presumably that's reason got 2 warnings.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

angularjs - ng-repeat duplicating items after page reload -