jQuery autocomplete for all place names in the UK I made an autocomplete input box of every town, city and village in the UK. Yes, every single one. The load times are painful so is there a way to reduce that?

Here is a sample:

&lt;input type="text" id="location" name="locations" placeholder="Edinburgh, Belfast, Cardiff, London"&gt;
$( function() {
    var availableTags = [
      "Abberton",
      "Abbeytown",
      "Abbots Bromley",
      "Abbots Leigh",
      "Abbotsbury",
      "Abbotskerswell",
      "Abbotsley"
    ];
$("#location").autocomplete({
      source: availableTags
});
}); 


Here is a JSFiddle with the entire list, which has 7726 items.
You can improve performance by using autocomplete function with this options:

$( "#location" ).autocomplete({
      source: availableTags,
      delay: 0,
      minLength: 2,
});


This library has  a 300 ms delay by default. So setting delay to 0 disables it.
minLength is for loading the matches after the users typed at least 2 chars, I don't think there is a point to load them when you have only 1 character.

Good luck