Skip to content

Commit

Permalink
perf: balance the debounce time properly
Browse files Browse the repository at this point in the history
  • Loading branch information
hargoniX committed Jan 4, 2024
1 parent ed9a8cf commit 7b23eaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ const debounce = (callback, wait) => {
};
}

// The debounce delay for the search. 17 ms corresponds to approximately 60hz so the search feeling should be real time.
const SEARCH_DEBOUNCE = 17;
// The debounce delay for the search. 90 ms is below the noticable input lag for me
const SEARCH_DEBOUNCE = 90;

DeclarationDataCenter.init()
.then((dataCenter) => {
Expand Down

0 comments on commit 7b23eaa

Please sign in to comment.