Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Throttle API requests on keyup/keydown/keypress #5

Open
artfuldev opened this issue Jun 1, 2016 · 1 comment
Open

Throttle API requests on keyup/keydown/keypress #5

artfuldev opened this issue Jun 1, 2016 · 1 comment

Comments

@artfuldev
Copy link

When we type fast, a number of requests are made. We could throttle this by debouncing the events.

@navaneeth
Copy link
Member

Yes. Lot of requests go waisted as you would have advanced in typing next
words. So the client checks this condition and discards the response. But as
you rightly observed, server will be processing unnecessary requests. We
need to cancel them if it is not sent.

The online editor was created merely to showcase varnam. That is the reason
why lot of these are not addressed.

Online editor is never expected to be the primary editor. Varnam is supposed to be used with native
keyboards and fully offline so that you get the speed that you need. But we

have done only Linux IME so far. Windows and OSX are pending.

Thanks
Navaneeth

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

No branches or pull requests

2 participants