I am calling a function for every 10 minutes this way
var int=self.setInterval(my_func, 600000);
function my_func(){
$.ajax({
url: 'xxxxxxxx',
success: function(response) {
var data= JSON.parse(response);
displayCustomerDetails(data);
},
error: function(e) {
alert('Error full filling request');
}
});
}
How can i eliminate this delay when it is called for the first time ??