logoalt Hacker News

weird-eye-issuetoday at 4:49 AM1 replyview on HN

I think you don't fully understand. They aren't just doing a search based on the key being pressed down. They already did a search based on the previous characters that returned results for all possible next characters. So by the time you type a second character it just checks results locally from the search that had likely already been returned from when you had typed the previous character.


Replies

wkytoday at 5:01 AM

They do that, yet proceed to kneecap the perceived latency by delaying the render.

> And on keyUp (the user releases the key), we render the suggestions.

show 1 reply