Skip to content

Commit

Permalink
Set a typeahead delay to prevent overloading server (publiclab#4841)
Browse files Browse the repository at this point in the history
  • Loading branch information
icarito authored and jywarren committed Feb 20, 2019
1 parent 0865347 commit 255ec67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jQuery(document).ready(function() {
$('#taginput').typeahead({
items: 8,
minLength: 3,
delay: 450,
source: function (query, process) {
var term = query.split(',').pop()
if (term.length > 2) {
Expand Down

0 comments on commit 255ec67

Please sign in to comment.