delay () will not do the job. The delay () problem is part of the animation system and applies only to animation queues.
What if you want to wait until something is done outside the animation?
Use this:
window.setTimeout(function(){
What happens ?: In this scenario, it waits 600 milliseconds before executing the code indicated in curly brackets.
It really helped me figure it out, and I hope it helps you!
J. Louw Mar 18 '16 at 9:55 2016-03-18 09:55
source share