https://xdan.ru/rabota-s-settimeout-i-cleartimeout-dlja-optimizacii-java...
https://archakov.im/post/jquery-input-delay.html
View the discussion thread.