make async ajax calls
This commit is contained in:
parent
4303ccc42f
commit
4df57f612e
@ -24,9 +24,6 @@ $(document).ready(function(){
|
|||||||
$.jqplot('hashrategraph', [storedData], options);
|
$.jqplot('hashrategraph', [storedData], options);
|
||||||
setInterval(function() {
|
setInterval(function() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
// have to use synchronous here, else the function
|
|
||||||
// will return before the data is fetched
|
|
||||||
async: false,
|
|
||||||
url: url,
|
url: url,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user