title: Getting data from external json file
body: <p>I am currently using JQuery to read an external .json file containing data for a photo slideshow</p>
  
  <p>photo-slideshow.json</p>
  
  <pre><code> [ 
          {
              "title" : "my tile", 
              "image" : "xx.jpg", 
              "url" : "www.example.com",
              "firstline" : "woow", 
              "secondline" : "the weather is fine"
          },
  
         .....
         ..... 
      ]
  
      &lt;script type="text/javascript" &gt;
      var photos; 
      $.getJSON(
             "lang/en/photo-slideshow.json", 
              function(result) {
                      photos = result;
              }
         );
      &lt;script&gt;
  </code></pre>
  
  <p>The script works fine on pages that take longer to load! On pages loading very quickly (e.g. 1 sec)
  the json file doesn<code>t seem to be read completely and the slideshow doesn</code>t start.</p>