我在我的頭中有以下代碼加載谷歌託管的API中的字體,並加載jQuery和jQueryUI。谷歌託管的jQuery和webfonts導致webkit警告
<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行會被加載而沒有問題,而jQuery-ui行會導致這個問題?
我不能說第一次檢查是否會造成任何問題,jQuery-ui聽起來像是在工作,但它將jQuery-ui解釋爲樣式表的事實聽起來確實很糟糕。
我有我的自我相同的問題。 – donatJ 2011-04-26 18:25:54
我只能建議下載字體和jquery文件並將它們上傳到您的public_html文件夾的某處。 – martincarlin87 2011-05-27 09:23:39