diff --git a/js/books.js b/js/books.js index 62d6557..4e96af4 100644 --- a/js/books.js +++ b/js/books.js @@ -34,7 +34,7 @@ $(document).ready(function() { }); $("#search").on("change keyup", function() { if ( searchTimeout ) clearTimeout(searchTimeout); - searchTimeout = setTimeout(getContents, 500); + if ( $("#search").val().length > 2 ) searchTimeout = setTimeout(getContents, 500); }); });