I am using jQuery getJSON() function. This function getting data with no problem. But sometimes waiting, waiting waiting... And my loading bar showing loading loadi
getJSON()
getJSON() is just a shorthand for the following:
$.ajax({ dataType: "json", url: url, data: data, success: success });
So you could use $.ajax() and specify the timeout option as desired. See also: http://api.jquery.com/jQuery.getJSON/
$.ajax()
timeout