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

option to use requestAnimationFrame #99

Open
wants to merge 2 commits into
base: v2
Choose a base branch
from

Conversation

grma1
Copy link

@grma1 grma1 commented Sep 15, 2015

As the callback functionality was removed in v2 branch I've added it back as it could be handy from time to time.

I've also added an option to use requestAnimationFrame instead of setTimeout to avoid unnecessary reflows.

The filter loop was also optimized a bit to avoid reflows due to .scrollTop() and .offset() calls.

grma1 and others added 2 commits September 15, 2015 14:18
use vanilla.js to speed up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant