maxwroc / HideSeek-Mod

Extended version of original HideSeek plugin
http://maxwroc.github.io/HideSeek-Mod
Apache License 2.0
3 stars 0 forks source link

Throttling #1

Closed maxwroc closed 5 years ago

maxwroc commented 5 years ago

When there is a lot of content, the script can hang for a long time. Executing all the logic after every keystroke is just eating resources without benefit - especially when someone is typing query fast.

Suggested throttling value: 250ms

Throttling implementation details: KeyUp handler is being called delayed for a given time. If another event is dispatched the previous handler execution is being cancelled.