Waiting for triggering custom sync/async condition with any timeout and interval
AdvWaiter is a JavaScript library/module that provides a couple of wait functions to simplify the source code and make it more readable.
Lightweight (1KB) dependency management built on jQuery Deferreds.