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.
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.