Skip to content
This repository was archived by the owner on Jan 11, 2022. It is now read-only.

[perf] scrolling#80

Open
SassNinja wants to merge 4 commits intorgalus:masterfrom
SassNinja:perf/scrolling
Open

[perf] scrolling#80
SassNinja wants to merge 4 commits intorgalus:masterfrom
SassNinja:perf/scrolling

Conversation

@SassNinja
Copy link
Copy Markdown
Contributor

I was facing major performance issues in Safari resulting in jumping on quick scrolling.
The more content I've had in my sticky container the worse it was.

This PR improves the scrolling performance by using requestAnimationFrame what fixes my the Safari issue.

I've taken over the code from #68 (hope you don't mind @Kukiwon) and polished it a bit.

Also fixes #43

By using requestAnimationFrame Safari runs much smoother.
To not break the resize listener that params must be piped through to every css() call
There too many css() calls to pass the boolean everywhere reliably (apart from not looking good). Though I'm simply toggling useAF on instance level.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lags/jumps when scrolling in Safari 11.0.3

1 participant