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
This commit is contained in:
@@ -635,7 +635,7 @@
|
|||||||
$('.do-search').on('click', search);
|
$('.do-search').on('click', search);
|
||||||
$('.search-input').on('keyup', function() {
|
$('.search-input').on('keyup', function() {
|
||||||
clearTimeout(keyUpTimeout);
|
clearTimeout(keyUpTimeout);
|
||||||
keyUpTimeout = setTimeout(search, 100);
|
keyUpTimeout = setTimeout(search, 500);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Push and pop states are used to add search results to the browser
|
// Push and pop states are used to add search results to the browser
|
||||||
|
|||||||
Reference in New Issue
Block a user