title: Jquery UI Autocomplete Load on page load
body: <p>i'm trying to load the autocomplete data at the page load, right now it is doing the getJson when i type some letters in the input, and because of the size of the json data, it is freezing. So i want the autocomplete json request to be fired at the loading of the page, and have the data, so when i start typing it wont freeze. Cheers! </p>
  
  <pre><code>    &lt;script&gt;
  $(function() {
  
    $.getJSON("airports.php", function(data) {
  
              $( "#cityAirport" ).autocomplete({
                  source: data
              });
          });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>My Exatc problem is, that right now when i start typing something, the website freezes for a seconds (2-3) when getJson is fired... </p>