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

perf: throttle keyboard input to improve responsiveness #287

Merged
merged 1 commit into from
Mar 12, 2019

Conversation

nolanlawson
Copy link

Responsiveness while typing in the search bar can be sluggish, because we are updating on every change event. With this PR, we throttle the change listener based on requestIdleCallback/setTimeout to avoid sluggishness.

The easiest way to reproduce this is to put the Chrome Dev Tools on 6x slowdown, and then type very fast. Especially when deleting the first letter, you can feel the delay.

nolanlawson added a commit to nolanlawson/emoji-mart that referenced this pull request Mar 10, 2019
perf: throttle keyboard input to improve responsiveness
nolanlawson added a commit to nolanlawson/emoji-mart that referenced this pull request Mar 10, 2019
perf: throttle keyboard input to improve responsiveness
@nolanlawson nolanlawson merged commit 27d6a38 into missive:master Mar 12, 2019
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