2016/02/01

setTimeout() alternative as an Happy New Year wish ?




I'm late. But still want to wish you a
very Happy 2016 !

That's the perfect time to use a JS window.setTimeout() function.

Unfortunately, don't ask me why, i can't use .setTimeout on current window.

That's why i describe here a simple alternative to setTimeout() as an asynchrone XHR.

The fiddle

UPDATE :

a response based on jQuery version 3.0 .animate() here https://stackoverflow.com/questions/35133311/js-settimeout-alternative

@Mat