From 6abad666dbe5175b7b784edf0691c982e21b6e8d Mon Sep 17 00:00:00 2001 From: Anatoly Mikhailov Date: Sun, 5 Oct 2014 20:54:53 +0100 Subject: [PATCH] Debounce/Throttling Searching event New backend call to each keydown may hit the back-end performance. 500ms is reasonable delay to avoid too many requests while user is typing a search query --- src/app/partials/search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/partials/search.html b/src/app/partials/search.html index ccddfb14474..2d220b206fd 100644 --- a/src/app/partials/search.html +++ b/src/app/partials/search.html @@ -22,7 +22,7 @@ + ng-keydown="keyDown($event)" ng-model="query.query" ng-model-options="{ debounce: 500 }" spellcheck='false' ng-change="search()" /> tags