I found a simple spinner/loader that uses only one div and one css. When I implemented that, i found that it was not stopping. It goes on and on.... so I inserted window load script given below. still it does not stop. What am I doing wrong?
Here is a fiddle http://jsfiddle.net/qzLdjq3c/5/
$(window).load(function() {
$('.spinner').show();
$(".spinner").hide();
});
you don't even use jQuery (on the left side under included libraries) in your example. second you use # instead of a dot (class) selector .... and third, in jsFiddle, look at the left side. You already run the js on the onLoad...you can't just fire it again (i think), anyway, you are wrong at everything imaginably possible. fix what I said and try again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With