-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the body page length is too large, the console will issue a performance warning #703
Comments
Good day @xiyuvi :) Hmm I've never observed that warning in the console until now.. What OS / Browser / Browser version are you using? |
@KingSora Chrome 131.0.6778.265 Chrome 57 turned on 'hide violations' by default. To turn them back on you need to enable filters and uncheck the 'hide violations' box.
|
Just a thought: What specification is your hardware? Do you have limited CPU & RAM resources? |
Is your feature request related to a problem? Please describe.
When the body page length is too large, the console will issue a performance warning,For example, on pages that are relatively long https://kingsora.github.io/OverlayScrollbars/ Central, console warning: [Violation] Forced reflow while executing JavaScript took 162ms
And on shorter pages https://kingsora.github.io/OverlayScrollbars/example/overlayscrollbars/ There is no such performance warning
The shorter the test page or the fewer sub elements on the page, the lower the ms value of this performance alarm
Describe the solution you'd like
I hope there is a way to solve this performance alarm
Describe alternatives you've considered
I tried calling the requestAnimationFrame function on the outer wrapper of OverlayScrollbars, but was unsuccessful. I received an additional warning: [Violation] 'requestAnimationFrame' handler took 62ms
Additional context
The text was updated successfully, but these errors were encountered: