为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Issue loading images on specific site on Linux

  • 4 个回答
  • 0 人有此问题
  • 最后回复者为 cor-el

more options

Browsing works well on my Ubuntu/Linux 22.04.5 laptop except one site. Images are not loading. I can see it has js-errors which might be related. And that may be because some js files are being blocked. The site does work on my iphone though. And using Browserstack I can see it works with other OS.

The site is: knowledgecottonapparel . com

I've verified that others using Linux has the same issue, https://askubuntu.com/questions/1526728/issue-with-specific-site

Browsing works well on my Ubuntu/Linux 22.04.5 laptop except one site. Images are not loading. I can see it has js-errors which might be related. And that may be because some js files are being blocked. The site does work on my iphone though. And using Browserstack I can see it works with other OS. The site is: knowledgecottonapparel . com I've verified that others using Linux has the same issue, https://askubuntu.com/questions/1526728/issue-with-specific-site

所有回复 (4)

more options

ben170 said

I've verified that others using Linux has the same issue, https://askubuntu.com/questions/1526728/issue-with-specific-site

"Others..." I only see you. see screenshot I tried 3 different browsers and all have the same issue. Post a screenshot of the site working.

有帮助吗?

more options

@jonzn4SUSE Thank you for your reply! See the comments for my question on askubuntu. At least 3 people say they see the same issue and one says it works on Windows for him. I know it also does not work in other browsers on Linux. But shouldn't it work with Firefox on all OS?

Here is a screenshot of the site working on Browserstack. I think it's Windows 11 with Firefox 130.

有帮助吗?

more options

What is the URL of an image that loads in a browser?

Does Firefox request the same URL in a browser where it doesn't work?

I see a lot of errors reported in the Web Console, so it is possible that the script that generates the correct URL (image size) isn't working.

Looks that that is right. I see this source link in the Inspector with a {width} parameter that gives a page not sound error.

I get the image if I replace this parameter with '2000'.

有帮助吗?

more options

This is definitely a problem with scripts that aren't working properly and process dataset parameters to adjust the image width parameter to the current screen estate.

This is a simple bookmarklet that makes the images show for me.

javascript:(function(){var B=0,k=0,W=[200,400,600,700,800,900,1000,1200][6];
document.querySelectorAll('img[data-src]').forEach(E=>{E.src=E.dataset['src'].replace('{width}',W);E.style.setProperty('opacity','1','important');E.style.setProperty('display','block','important');k++});if(B){alert('images adjusted: '+k)}})()

You can create a new bookmark and paste the JavaScript code in its URL field where you would normally enter the address of the website.

有帮助吗?

我要提问

您需要登录才能回复。如果您还没账号,可以提出新问题