We are still working on more how-to entries.
If you need a specific one, just let us know.
See contact section.
Patterns with animations
- How to wait for the elements' animation queues to get empty?
$('.some').wait().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations?
$('.some').join().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations for a given queue name?
$('.some').join(queue).doSome().jQueryStuff();
- How to wait for the elements' animation queues to get empty with .join()?
$('.some').join(true).doSome().jQueryStuff();
- How to wait for the elements' animation queues for a given queue name to get empty?
$('.some').join(queue,true).doSome().jQueryStuff();
- How to queue an animation and return immediately?
$('.some').animate(attributes,options);
- How to queue an animation for a single element and wait until it finished?
$('#single').animate(attributes,options,$).jQueryStuff();
- How to queue an animation for multiple elements and wait until they finished?
$('.many').animate(attributes,options,$).jQueryStuff();
Patterns with timeouts
- How to insert a single timeout?
$('.some').doSome().wait(timeout).doLater();
- How to invoke a single function after a timeout?
$.wait(timeout, function(){ … });
- How to invoke a callback at some specific point in the timeline?
$some.timingStuff().then(callback).doMore();
- How to interrupt timeouts for some elements?
// $('.some').wait(timeout)… $('.some').unwait();
- How to insert multiple timeouts?
$('.some').doSome().wait(first-timeout).jQueryStuff() .wait(second-timeout).doLater().jQueryStuff();
- How to concatenate function calls with timeouts?
$.wait(first-timeout, function(){ … }) .wait(second-timeout, function(){ … }) .wait(third-timeout, function(){ … });
- How to interrupt timeouts from static usage of wait()?
// $.wait(timeout)… $.unwait();
Patterns with open loops
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with animations
- How to wait for the elements' animation queues to get empty?
$('.some').wait().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations?
$('.some').join().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations for a given queue name?
$('.some').join(queue).doSome().jQueryStuff();
- How to wait for the elements' animation queues to get empty with .join()?
$('.some').join(true).doSome().jQueryStuff();
- How to wait for the elements' animation queues for a given queue name to get empty?
$('.some').join(queue,true).doSome().jQueryStuff();
- How to queue an animation and return immediately?
$('.some').animate(attributes,options);
- How to queue an animation for a single element and wait until it finished?
$('#single').animate(attributes,options,$).jQueryStuff();
- How to queue an animation for multiple elements and wait until they finished?
$('.many').animate(attributes,options,$).jQueryStuff();
Patterns with promises
- How to wait for the elements' animation queues to get empty?
$('.some').wait().doSome().jQueryStuff();
- How to wait for the elements' animation queues to get empty with .join()?
$('.some').join(true).doSome().jQueryStuff();
- How to wait for the elements' animation queues for a given queue name to get empty?
$('.some').join(queue,true).doSome().jQueryStuff();
Patterns with animations
- How to wait for the elements' animation queues to get empty?
$('.some').wait().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations?
$('.some').join().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations for a given queue name?
$('.some').join(queue).doSome().jQueryStuff();
- How to wait for the elements' animation queues to get empty with .join()?
$('.some').join(true).doSome().jQueryStuff();
- How to wait for the elements' animation queues for a given queue name to get empty?
$('.some').join(queue,true).doSome().jQueryStuff();
- How to queue an animation and return immediately?
$('.some').animate(attributes,options);
- How to queue an animation for a single element and wait until it finished?
$('#single').animate(attributes,options,$).jQueryStuff();
- How to queue an animation for multiple elements and wait until they finished?
$('.many').animate(attributes,options,$).jQueryStuff();
Patterns with promises
- How to wait for the elements' animation queues to get empty?
$('.some').wait().doSome().jQueryStuff();
- How to wait for the elements' animation queues to get empty with .join()?
$('.some').join(true).doSome().jQueryStuff();
- How to wait for the elements' animation queues for a given queue name to get empty?
$('.some').join(queue,true).doSome().jQueryStuff();
Patterns with animations
- How to wait for the elements' animation queues to get empty?
$('.some').wait().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations?
$('.some').join().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations for a given queue name?
$('.some').join(queue).doSome().jQueryStuff();
- How to wait for the elements' animation queues to get empty with .join()?
$('.some').join(true).doSome().jQueryStuff();
- How to wait for the elements' animation queues for a given queue name to get empty?
$('.some').join(queue,true).doSome().jQueryStuff();
- How to queue an animation and return immediately?
$('.some').animate(attributes,options);
- How to queue an animation for a single element and wait until it finished?
$('#single').animate(attributes,options,$).jQueryStuff();
- How to queue an animation for multiple elements and wait until they finished?
$('.many').animate(attributes,options,$).jQueryStuff();
Patterns with promises
- How to wait for the elements' animation queues to get empty?
$('.some').wait().doSome().jQueryStuff();
- How to wait for the elements' animation queues to get empty with .join()?
$('.some').join(true).doSome().jQueryStuff();
- How to wait for the elements' animation queues for a given queue name to get empty?
$('.some').join(queue,true).doSome().jQueryStuff();
Patterns with callbacks
- How to invoke a single function after a timeout?
$.wait(timeout, function(){ … });
- How to invoke a callback at some specific point in the timeline?
$some.timingStuff().then(callback).doMore();
- How to concatenate function calls with timeouts?
$.wait(first-timeout, function(){ … }) .wait(second-timeout, function(){ … }) .wait(third-timeout, function(){ … });
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to invoke a function on each element without timing?
$('.many').each(function(i,elem){ … });
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with parallel loops
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with parallel loops
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with arrays of values
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with sequential loops
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with sequential loops
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
Patterns with instant loops
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with sequential loops
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
Patterns with intervals
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
Patterns with timeouts
- How to insert a single timeout?
$('.some').doSome().wait(timeout).doLater();
- How to invoke a single function after a timeout?
$.wait(timeout, function(){ … });
- How to invoke a callback at some specific point in the timeline?
$some.timingStuff().then(callback).doMore();
- How to interrupt timeouts for some elements?
// $('.some').wait(timeout)… $('.some').unwait();
- How to insert multiple timeouts?
$('.some').doSome().wait(first-timeout).jQueryStuff() .wait(second-timeout).doLater().jQueryStuff();
- How to concatenate function calls with timeouts?
$.wait(first-timeout, function(){ … }) .wait(second-timeout, function(){ … }) .wait(third-timeout, function(){ … });
- How to interrupt timeouts from static usage of wait()?
// $.wait(timeout)… $.unwait();
Patterns with instant loops
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with inline attached events
- How to attach an inline event handler using .on() without any callback?
$('.some').on('click').doSome().jQueryStuff();
- How to attach an inline event handler using .on() with the jQuery token?
$('.some').on('click',$).doSome().jQueryStuff();
- How to attach an inline DOM event handler?
$('.some').click($).doSome().jQueryStuff();
Patterns with inline attached events
- How to attach an inline event handler using .on() without any callback?
$('.some').on('click').doSome().jQueryStuff();
- How to attach an inline event handler using .on() with the jQuery token?
$('.some').on('click',$).doSome().jQueryStuff();
- How to attach an inline DOM event handler?
$('.some').click($).doSome().jQueryStuff();
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with instant loops
Patterns with inline attached events
- How to attach an inline event handler using .on() without any callback?
$('.some').on('click').doSome().jQueryStuff();
- How to attach an inline event handler using .on() with the jQuery token?
$('.some').on('click',$).doSome().jQueryStuff();
- How to attach an inline DOM event handler?
$('.some').click($).doSome().jQueryStuff();
Patterns with timeouts
- How to insert a single timeout?
$('.some').doSome().wait(timeout).doLater();
- How to invoke a single function after a timeout?
$.wait(timeout, function(){ … });
- How to invoke a callback at some specific point in the timeline?
$some.timingStuff().then(callback).doMore();
- How to interrupt timeouts for some elements?
// $('.some').wait(timeout)… $('.some').unwait();
- How to insert multiple timeouts?
$('.some').doSome().wait(first-timeout).jQueryStuff() .wait(second-timeout).doLater().jQueryStuff();
- How to concatenate function calls with timeouts?
$.wait(first-timeout, function(){ … }) .wait(second-timeout, function(){ … }) .wait(third-timeout, function(){ … });
- How to interrupt timeouts from static usage of wait()?
// $.wait(timeout)… $.unwait();
Patterns with animations
- How to wait for the elements' animation queues to get empty?
$('.some').wait().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations?
$('.some').join().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations for a given queue name?
$('.some').join(queue).doSome().jQueryStuff();
- How to wait for the elements' animation queues to get empty with .join()?
$('.some').join(true).doSome().jQueryStuff();
- How to wait for the elements' animation queues for a given queue name to get empty?
$('.some').join(queue,true).doSome().jQueryStuff();
- How to queue an animation and return immediately?
$('.some').animate(attributes,options);
- How to queue an animation for a single element and wait until it finished?
$('#single').animate(attributes,options,$).jQueryStuff();
- How to queue an animation for multiple elements and wait until they finished?
$('.many').animate(attributes,options,$).jQueryStuff();
Patterns with open loops
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with parallel loops
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with arrays of values
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with open loops
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with parallel loops
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with arrays of values
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with open loops
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with sequential loops
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
Patterns with callbacks
- How to invoke a single function after a timeout?
$.wait(timeout, function(){ … });
- How to invoke a callback at some specific point in the timeline?
$some.timingStuff().then(callback).doMore();
- How to concatenate function calls with timeouts?
$.wait(first-timeout, function(){ … }) .wait(second-timeout, function(){ … }) .wait(third-timeout, function(){ … });
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to invoke a function on each element without timing?
$('.many').each(function(i,elem){ … });
Patterns with intervals
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with instant loops
Patterns with callbacks
- How to invoke a single function after a timeout?
$.wait(timeout, function(){ … });
- How to invoke a callback at some specific point in the timeline?
$some.timingStuff().then(callback).doMore();
- How to concatenate function calls with timeouts?
$.wait(first-timeout, function(){ … }) .wait(second-timeout, function(){ … }) .wait(third-timeout, function(){ … });
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to invoke a function on each element without timing?
$('.many').each(function(i,elem){ … });
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with intervals
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
Patterns with animations
- How to wait for the elements' animation queues to get empty?
$('.some').wait().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations?
$('.some').join().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations for a given queue name?
$('.some').join(queue).doSome().jQueryStuff();
- How to wait for the elements' animation queues to get empty with .join()?
$('.some').join(true).doSome().jQueryStuff();
- How to wait for the elements' animation queues for a given queue name to get empty?
$('.some').join(queue,true).doSome().jQueryStuff();
- How to queue an animation and return immediately?
$('.some').animate(attributes,options);
- How to queue an animation for a single element and wait until it finished?
$('#single').animate(attributes,options,$).jQueryStuff();
- How to queue an animation for multiple elements and wait until they finished?
$('.many').animate(attributes,options,$).jQueryStuff();
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with intervals
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
Patterns with callbacks
- How to invoke a single function after a timeout?
$.wait(timeout, function(){ … });
- How to invoke a callback at some specific point in the timeline?
$some.timingStuff().then(callback).doMore();
- How to concatenate function calls with timeouts?
$.wait(first-timeout, function(){ … }) .wait(second-timeout, function(){ … }) .wait(third-timeout, function(){ … });
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to invoke a function on each element without timing?
$('.many').each(function(i,elem){ … });
Patterns with chain interruption
Patterns with inline attached events
- How to attach an inline event handler using .on() without any callback?
$('.some').on('click').doSome().jQueryStuff();
- How to attach an inline event handler using .on() with the jQuery token?
$('.some').on('click',$).doSome().jQueryStuff();
- How to attach an inline DOM event handler?
$('.some').click($).doSome().jQueryStuff();
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with open loops
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with animations
- How to wait for the elements' animation queues to get empty?
$('.some').wait().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations?
$('.some').join().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations for a given queue name?
$('.some').join(queue).doSome().jQueryStuff();
- How to wait for the elements' animation queues to get empty with .join()?
$('.some').join(true).doSome().jQueryStuff();
- How to wait for the elements' animation queues for a given queue name to get empty?
$('.some').join(queue,true).doSome().jQueryStuff();
- How to queue an animation and return immediately?
$('.some').animate(attributes,options);
- How to queue an animation for a single element and wait until it finished?
$('#single').animate(attributes,options,$).jQueryStuff();
- How to queue an animation for multiple elements and wait until they finished?
$('.many').animate(attributes,options,$).jQueryStuff();
Patterns with instant loops
Patterns with intervals
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
Patterns with chain interruption
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with open loops
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to collect primitive values from each element into an array-like object?
var values = $('.some').each().attr(name);
- How to collect primitive values from each element into a native array using an open each-loop?
var valueArray = $($('.some').each().attr(name)).get();
Patterns with instant loops
Patterns with intervals
- How to repeat actions on interval with an open loop?
$('.some').repeat(interval).doThis().overAndOver();
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in an open interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().overAndOver();
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat a single callback on interval?
$.repeat(interval, function(){ … });
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with instant loops
Patterns with inline attached events
- How to attach an inline event handler using .on() without any callback?
$('.some').on('click').doSome().jQueryStuff();
- How to attach an inline event handler using .on() with the jQuery token?
$('.some').on('click',$).doSome().jQueryStuff();
- How to attach an inline DOM event handler?
$('.some').click($).doSome().jQueryStuff();
Patterns with instant loops
Patterns with closed loops
- How to repeat actions on interval with a closed loop?
$('.some').repeat(interval).doThis().until(false);
- How to repeat actions in a closed interval loop with immediate first run?
$('.some').repeat(interval,true).doThis().until(false);
- How to repeat actions a given number of times?
$('.some').repeat().doThis().jQueryStuff().until(count);
- How to repeat on interval a given number of times?
$('.some').repeat(interval).doThis().until(count);
- How to wait for some event on each element in parallel before continuing?
$('.many').each().wait(event).all().doSome().jQueryStuff();
- How to wait for some event on each element in the right sequence?
$('.many').each($).wait(event).all().doSome().jQueryStuff();
- How to collect primitive values from each element into a native array using a closed each-loop?
var valueArray = $('.some').each().attr(name).all().get();
Patterns with inline attached events
- How to attach an inline event handler using .on() without any callback?
$('.some').on('click').doSome().jQueryStuff();
- How to attach an inline event handler using .on() with the jQuery token?
$('.some').on('click',$).doSome().jQueryStuff();
- How to attach an inline DOM event handler?
$('.some').click($).doSome().jQueryStuff();
Patterns with animations
- How to wait for the elements' animation queues to get empty?
$('.some').wait().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations?
$('.some').join().doSome().jQueryStuff();
- How to wait for the end of the elements' current animations for a given queue name?
$('.some').join(queue).doSome().jQueryStuff();
- How to wait for the elements' animation queues to get empty with .join()?
$('.some').join(true).doSome().jQueryStuff();
- How to wait for the elements' animation queues for a given queue name to get empty?
$('.some').join(queue,true).doSome().jQueryStuff();
- How to queue an animation and return immediately?
$('.some').animate(attributes,options);
- How to queue an animation for a single element and wait until it finished?
$('#single').animate(attributes,options,$).jQueryStuff();
- How to queue an animation for multiple elements and wait until they finished?
$('.many').animate(attributes,options,$).jQueryStuff();
Patterns with timeouts
- How to insert a single timeout?
$('.some').doSome().wait(timeout).doLater();
- How to invoke a single function after a timeout?
$.wait(timeout, function(){ … });
- How to invoke a callback at some specific point in the timeline?
$some.timingStuff().then(callback).doMore();
- How to interrupt timeouts for some elements?
// $('.some').wait(timeout)… $('.some').unwait();
- How to insert multiple timeouts?
$('.some').doSome().wait(first-timeout).jQueryStuff() .wait(second-timeout).doLater().jQueryStuff();
- How to concatenate function calls with timeouts?
$.wait(first-timeout, function(){ … }) .wait(second-timeout, function(){ … }) .wait(third-timeout, function(){ … });
- How to interrupt timeouts from static usage of wait()?
// $.wait(timeout)… $.unwait();