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

Debounce MutationObserver callbacks #6

Closed
noodlebox opened this issue Oct 25, 2016 · 0 comments
Closed

Debounce MutationObserver callbacks #6

noodlebox opened this issue Oct 25, 2016 · 0 comments

Comments

@noodlebox
Copy link
Owner

The UI can feel sluggish when large changes occur (like switching channels), or when there's a lot of emotes to replace. This should probably happen before fixing #5, which needs to additionally handle mutations to element data.

Ideally, the work should be put off until a requestAnimationFrame callback. It may also help to break work up into smaller chunks (<~3ms), though this should try avoid triggering a ton of ugly layout changes if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant