為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Why does Firefox lag when scrolling through certain websites?

  • 4 回覆
  • 33 有這個問題
  • 123 次檢視
  • 最近回覆由 rabbid-fox

more options

I've tested my current profile with all my addons enabled, and compared it to a brand new addon-free profile. The clean profile showed no difference to my current profile; the lag happens on both the clean and current profile. Turning off Smooth Scrolling and Hardware Acceleration helps nothing. This same site, on Chromium and Opera both show zero lag, site functions perfectly. I use Linux as an OS, but when booting into Windows FF, the lag is also there. IE scrolls normally on this site too.

Here is one page where scroll lag happens. Lag happens throughout most of the Yahoo sites, if I'm not mistaken.

http://hockey.fantasysports.yahoo.com/hockey/1954/2

My hardware is not the issue as I have this: Intel Core i3 8GB RAM Samsung 840 SSD Nvidia 460GTX 768MB

I've tested my current profile with all my addons enabled, and compared it to a brand new addon-free profile. The clean profile showed no difference to my current profile; the lag happens on both the clean and current profile. Turning off Smooth Scrolling and Hardware Acceleration helps nothing. This same site, on Chromium and Opera both show zero lag, site functions perfectly. I use Linux as an OS, but when booting into Windows FF, the lag is also there. IE scrolls normally on this site too. Here is one page where scroll lag happens. Lag happens throughout most of the Yahoo sites, if I'm not mistaken. http://hockey.fantasysports.yahoo.com/hockey/1954/2 My hardware is not the issue as I have this: Intel Core i3 8GB RAM Samsung 840 SSD Nvidia 460GTX 768MB

被選擇的解決方法

You can add this code to the userContent.css file.

The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.

@-moz-document domain(hockey.fantasysports.yahoo.com) {
html, body { background-attachment: scroll !important; }

If you need it for other web pages than add the domains separated by commas.

@-moz-document
 domain(hockey.fantasysports.yahoo.com),
 domain(xxx.com) { background-attachment: scroll !important; }
從原來的回覆中察看解決方案 👍 1

所有回覆 (4)

more options

You may have a problem with the fixed background image on the page.

You can try these in the command line in the Web Console (Firefox/Tools > Web Developer;Ctrl+Shift+K) to see if that has effect.

void(document.querySelector("html").style.backgroundAttachment='scroll');void(document.querySelector("body").style.backgroundAttachment='scroll');
more options

Thank you for the quick reply...Firefox having issues with fixed background images does appear to be the problem. Scrolling no longer lags like it used to when entering the code you've provided into the Web Console. Is there a way to make this permanent on this particular site through a rule of sorts?

more options

選擇的解決方法

You can add this code to the userContent.css file.

The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.

@-moz-document domain(hockey.fantasysports.yahoo.com) {
html, body { background-attachment: scroll !important; }

If you need it for other web pages than add the domains separated by commas.

@-moz-document
 domain(hockey.fantasysports.yahoo.com),
 domain(xxx.com) { background-attachment: scroll !important; }
more options

Cool, thanks for the answers!