So I have another plugin that takes a second to load because it has to get some info, so I plan on making it so that it runs on about a 3 second timer, during the 3 seconds it will display something like "Loading Statistics" then slides down the statistics judging that they took 3 seconds or less to load, heres my current code, but it keeps repeating http://jsfiddle.net/7tkGY/
Thanks =) - Necro
window.setTimeout(func,3000);
setInterval is a repeating function. if you want to end a setinterval you must do this
var interval = window.setInterval(func,3000);
clearInterval(interval);
setTimeout(func,time) runs the function only onces
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