denoland / dotland

[Archived] deno.land website
https://deno.land
MIT License
957 stars 626 forks source link

feat: make global search dialog more robust #2497

Closed lucacasonato closed 2 years ago

lucacasonato commented 2 years ago

The dialog now has better handling of the following states:

Users on very fast connections, where requests are returned faster than the user enters keystrokes. This previously led to a flashing screen. The showing of the loading screen is now debounced by 500ms. This means that the loading screen will only show up if we get no updated results within 500ms of the users initial keystroke.

Additionally when results are returned slower than user entry (ie slow connection), we only show results from the most recent query. We don't show intermediate (now invalid) results anymore.