Chrome not displaying images though assets are being delivered to browser

▼魔方 西西 提交于 2019-12-05 07:54:54

I too was having the exact same issue, it also does this in Safari (Mac). In Firefox the images display and the inline CSS is not added.

What I noticed was when I turned off all extensions in Safari that the problem resolved.

In both Chrome and Safari I had AdBlockPlus installed - disabling this resolved the problem.

ABP was treating the images as ads (for whatever reason).

If you wish to keep ABP running, you can add the site to it's whitelist.

Ben

Chrome on Windows 7 is not displaying dynamic images.

If I "View Source" the image is there.

If I inspect the HTML in Chrome, it looks like Chrome is adding CSS to hide the image:

 style="display: none; visibility: hidden;

The images are displayed in Firefox and also in Chrome on Mac.

For what it's worth I just came across the same issue on FF and Chrome on Ubuntu, Chrome on Win 7 , ad block plugin on all those browsers. Turns out image like advert-bag.png will get blocked, so would an A tag with class 'advertLink'. The funny (or not) thing is all this is related to an internal stuff on client's site. Internal marketing type of stuff like a link to a special on some item. No third party services playing any role here. Moral of the story being watch how you name things. After renaming of things that disappear in this fashion, problem went away.

i have had the same problem , and it worked very well when i turned off all the adBlockers and such extensions , then when i wanted to make it work for all those who have adBlockers installed on their browsers , i had renamed these photos so as not to have any advertisement-like words , for example > "header.jpg" instead of "advertise-header.jpg" . so it is important to delete such words so as not to be recognized by the adBlockers.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!