Attempting to perform an asynchronous call to a server using the following method:
$(document).ready(function(){
$.ajax({
cache: true,
async: true,
dataType: "script",
url:"www.xyz.com/yyy?host_name=abc.com&size=S&use_flash=YES&use_transparent=YES&lang=en",
success: function(data) {
$("#verified").append(data);
console.log("data is "+data);
loading = false;
}
});
});
Despite this, the script does not load asynchronously. What am I overlooking? Any assistance would be greatly appreciated!