Google托管了导致webkit警告的jQuery和webfonts
||
我的标头中包含以下代码,以从Google \的托管API加载字体,并加载jQuery和jQueryUI。
<link href=\'http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold\' rel=\'stylesheet\' type=\'text/css\'>
<script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js\"></script>
<script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js\"></script>
这会在Webkit浏览器上引起以下警告(我正在从Chrome复制):
Resource interpreted as a stylesheet but transferred MIME mime type application/javascript. jquery-ui.min.js:-1
Resource interpreted as Font but transferred with MIME type font/woff. font:-1
Resource interpreted as Font but transferred with MIME type font/woff. font:-1
有谁知道如何解决这些问题?为什么当jQuery-ui线引起此问题时,为什么jQuery行不会出现问题?
我无法在第一次检查时就知道这些问题是否引起了任何问题,并且jQuery-ui听起来像在工作,但事实上,它将jQuery-ui解释为样式表确实听起来很糟糕。
没有找到相关结果
已邀请:
1 个回复
爆刺疤灯