Skip to content
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

Avoid full style recalculation by setting custom property only on element that uses it #597

Closed

Commits on Oct 2, 2024

  1. Avoid full style recalculation by setting custom property only on ele…

    …ment that uses it
    
    Since the `--scrolltop` custom property is only used on the `#toc` element,
    we can avoid a *full* style recalculation of all elements on the page which can take very long,
    and causes massive framerate drops during scrolling.
    
    This should not result in any changed behavior or appearance as no other element uses the custom property.
    Inwerpsel committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    2098afd View commit details
    Browse the repository at this point in the history