Chrome下资源加载失败 [英] Failed to load resource under Chrome
问题描述
网页中有一堆图片.
其他浏览器可以正确下载它们,但 Chrome 不能.
Other browsers do download them correctly, but Chrome doesn't.
在开发者的控制台中,它为每个图像显示以下消息:
In the developer's console, it shows the following message for each image:
资源加载失败
如前所述,问题仅出现在 Chrome 中.
As mentioned before, problem appears only in Chrome.
这是什么?
推荐答案
我最近遇到了这个问题,发现它是由Adblock"扩展引起的(我最好的猜测是因为我有横幅"这个词和文件名中的ad").
I recently ran into this problem and discovered that it was caused by the "Adblock" extension (my best guess is that it's because I had the words "banner" and "ad" in the filename).
为了快速测试这是否是您的问题,请在禁用扩展程序的情况下以隐身模式启动 Chrome (ctrl+shift+n) 并查看您的页面现在是否有效.请注意,默认情况下,所有扩展都将在隐身模式下被禁用,除非您专门将它们设置为运行(通过 chrome://extensions
).
As a quick test to see if that's your problem, start Chrome in incognito mode with extensions disabled (ctrl+shift+n) and see if your page works now. Note that by default all extensions will be already disabled in incognito mode unless you've specifically set them to run (via chrome://extensions
).
这篇关于Chrome下资源加载失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!