[英]Wordpress resource interpreted as stylesheet but transferred with mime type text/html
I made a little change in functions.php and now some stylesheets don't load and also I'm getting this error in the console everytime I access to my web page: 我对functions.php进行了一些更改,现在某些样式表无法加载,并且每次访问我的网页时,控制台都会出现此错误:
resource interpreted as stylesheet but transferred with mime type text/html wordpress 资源被解释为样式表,但通过mime类型text / html wordpress传输
The change I did is update the version of jquery to the latest 我所做的更改是将jquery的版本更新为最新版本
I could resolve this: 我可以解决这个问题:
By mistake I added 3 white lines in the end of the file functions.php after the "?>". 我错误地在“?>”之后的文件functions.php的末尾添加了3条白线。
I deleted those lines and now it works ok. 我删除了这些行,现在可以正常工作了。
Thanks. 谢谢。
i had this problem too, by clearing every thing in history of browser; 通过清除浏览器历史记录中的所有内容,我也遇到了这个问题; it solved!
解决了! this problem is about browser.
这个问题与浏览器有关。 if you want be sure, first test it in another browser.
如果要确定,请先在其他浏览器中进行测试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.