title: Load JSON before anything else
body: <p>I'm trying to load the JSON before anything else loads, because I need to access the JSON immediately when a browser connects to the server.</p>
  
  <p>This is how I load my json</p>
  
  <pre><code>$.getJSON('icons.txt', function(iconData) {
      icons = iconData;
  });
  </code></pre>
  
  <p>How can I make it so javascript loads the json first before anything else? or at least makes it so that it's loaded before the user connects.</p>