Why do fixed elements slow down scrolling in Firefox?

余生长醉 提交于 2019-12-01 03:55:52

This is bug #201307.

It's a bug reported in bugzilla

Apparently a work-around (with mixed reports of success..) is to disable smooth-scrolling

Just disable smooth scrolling in Edit > Preferences > Advanced.

As already stated, this is bug #201307. The workaround is to disable smooth scrolling:

Edit -> Prefrences -> Advanced -> General tab -> uncheck "Use smooth scrolling"

This website has a fixed element "First time at Stack Overflow? Check out the FAQ!", and it's slow as hell in firefox. Works better with Opera and Chrome though. FF3, Windows XP, ATI.

it eats CPU because the browser has to repaint the entire viewport every scroll change rather than just the newly visible area

Are you sure that there's a direct link here? Have you created a static HTML page with fixed elements to verify your theory? Given how widely these CSS properties are used, I'd think someone else would have noticed it by now, whatever browser/OS you're running.

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