title: Failed to load resource in ajax call
body: <p>Consider this code:</p>
  
  <pre><code>  function drawCharts2() {
    var jsonData2 = $.ajax({
        url: "http://**.**.**.**:9001/jolokia/read/*",
        dataType:"json",
        async: false
        }).responseText;
  
       var parsed2 = JSON.parse(jsonData2);
  </code></pre>
  
  <p>The above URL contains no value at the startup of the web app. The data in that url will come after 2-3 minutes. </p>
  
  <p>When I start my web app. It gives error, but as a workaround I have set my page refresh time to 30 seconds. So after 30 seconds the table generates successfully. </p>
  
  <p>I need a way so that, even if the url will not contain any data, the code should not give any error. It should just skip the whole code. 
  How can I achieve this?</p>