fx
, the standard effects queue.Note: This is a low-level method, you should probably use .queue()
instead.
fx
, the standard effects queue.fx
, the standard effects queue.Note: This is a low-level method, you should probably use .queue()
instead.
Every element can have one or more queues of functions attached to it by jQuery. In most applications, only one queue (called fx
) is used. Queues allow a sequence of actions to be called on an element asynchronously, without halting program execution.
The jQuery.queue()
method allows us to directly manipulate this queue of functions. Calling jQuery.queue()
with a callback is particularly useful; it allows us to place a new function at the end of the queue.
Note that when adding a function with jQuery.queue()
, we should ensure that jQuery.dequeue()
is eventually called so that the next function in line executes.