This is a common issue which I found over the internet, but none of the solutions worked for me.
I have a ajax loader GIF which is working fine in mozilla firefox but its getting stuck in chrome (ie. Image is not behaving like GIF).
here is the html code snippet-
<img id="loader" src="images/loader.gif" />
$.ajax({
url:'/myurl',
type:'POST',
data:postArg,
dataType:'json',
async:false,
success:function(as){
$('#loader').hide();
}
});
This is the ajax code which is returning response in around 10-15 seconds so I want to implement a loader until response is returned.
This is the image - https://i.stack.imgur.com/bYbLP.jpg
Expecting someone to help. Thanks in advance.