concept queue in category jQuery

appears as: queue, queue, queues
jQuery in Action, Third Edition

This is an excerpt from Manning's book jQuery in Action, Third Edition.

Bring up that page in your browser and click the Dequeue button. Note how the single click now triggers the execution of the entire chain of queued functions, as shown by figure 8.10. Also note that the last function added to the queue doesn’t have a call to dequeue() because at that time the queue will already be empty.

With dequeue() you can execute the function at the front of the queue. But sometimes you may need to remove all the functions stored in the queue without executing them.

Figure 8.9. Clicking the Dequeue button causes all the functions in the queue to fire for every image that they were established upon.