Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spinner/Loader does not stop after page loading

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();
});
like image 889
Sabha Avatar asked Feb 26 '26 11:02

Sabha


1 Answers

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.

like image 107
vsync Avatar answered Mar 01 '26 00:03

vsync



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!