Summary
We have seen that with jquery-timing you have a lot of possibilities to clean up your code. It's both working perfectly with old jQuery 1.2 code as well as with sophisticated jQuery.Deferred cases.
Why should I use the deferred jQuery chain?
The deferred jQuery chain, powered by our lazy proxy pattern and the new timed invocation chain technique, allows to use very short syntax, to define several callback actions just in line, and to include loops and delays in the same jQuery style.
In a nutshell: jquery-timing supports
- waiting for animations,
- waiting for timeouts,
- waiting for deferred objects,
- waiting for events,
- running sequential loops,
- running parallel loops,
- counting loop iterations,
- inlining event handlers,
- and the capability to glue that all together in a single jQuery line.
Again: What is the Deferred jQuery Chain?
The deferred jQuery chain is a jQuery-looking animation-aware recursion-free loop-capable event-handling deferred object with a fluent API. Now you got it – so let's play with it!