Skip to content

Commit f836f1e

Browse files
committed
Rollup merge of rust-lang#21339 - thorncp:api-docs-search, r=alexcrichton
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 rust-lang#20095 @Jurily, your input is welcome!
2 parents fa0c2c5 + f355747 commit f836f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

Lines changed: 1 addition & 1 deletion
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)