Skip to content

Commit f355747

Browse files
author
Chris Thorn
committed
Increase docs search box delay
Increases the delay of the search box to 500ms after key up. I tried adding a three character minimum for setting the delay, but didn't find it very useful. Should close #20095
1 parent 89c4e37 commit f355747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@
635635
$('.do-search').on('click', search);
636636
$('.search-input').on('keyup', function() {
637637
clearTimeout(keyUpTimeout);
638-
keyUpTimeout = setTimeout(search, 100);
638+
keyUpTimeout = setTimeout(search, 500);
639639
});
640640

641641
// Push and pop states are used to add search results to the browser

0 commit comments

Comments
 (0)