Added delay for search area
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Feb 2014 22:19:49 +0000 (23:19 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Feb 2014 22:19:49 +0000 (23:19 +0100)
commit44f8f78be1d184e394cfd5682dd36bd4ac7d2cf0
treeac5128fabe5b195ed5ad0dd842176b01f35f8e00
parent669f3b3c14d02635baacfff1550838ea12116b28
Added delay for search area

Previously a request would be send for every key stroke, now a request will only be send, if there was no key stroke for 500 miliseconds. This means that if you type pretty fast, it will only trigger a search once you stop.

This should reduce "hammering" the server with request which are more or less void since they will be ignored.
wcfsetup/install/files/js/WCF.Search.Message.js
wcfsetup/install/files/js/WCF.js