Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

queue


jQuery queueFn

Execute any jQuery method or arbitrary function in the animation queue. The first argument is either a function reference or the string name of a jQuery method, like “css” or “remove”. Any additional arguments will be passed into the specified method or function when it is executed. All queued functions execute, in order, in the default jQuery “fx” animation queue.

Full documentation, source, and examples are available on benalman.com.

Statable Message Queue

Statable Message Queue

A message in queue will get one state of 'initialized', 'executing' and 'done' on executing. And will get one state of 'success' and 'failure' after finish.

You can give a delegate(callback) to handle it on these states.

API Compatibility: 1.2.x, 1.3.x, 1.4.x

jQuery Message Queuing: Get all your JavaScript ducks in a row

With jQuery Message Queuing, you can process and manage operations on large queues of items or elements. You can throttle, giving each operation a little breathing room (firing tracking pixels, performing DOM manipulations). You can force multiple asynchronous operations to execute serially (AJAX requests). You can also get some quantity of JavaScript ducks, put them in a boat, in a line, and have them fight loudly over who gets to use the oars.

Full documentation, source, and examples are available on benalman.com.

jQuery longUrl: Uniform Resource Elongator

jQuery Long Url uses the longurlplease.com short URL lengthening API to expand short URLs from at least 80 services, including bit.ly, is.gd, tinyurl.com and more!

And not only has jQuery Long Url been written to take advantage of the longurlplease.com API “batch” ability, where up to ten URLs can be lengthened per request, but it can optionally use any lengthening service, supporting any URL-per-request “batch” limitations, which minimizes the number of external requests made for faster performance.

Full documentation, source, and examples are available on benalman.com.

hoverFlow - A Solution to Animation Queue Buildup

The hoverFlow plugin helps you build smoother hover animations with jQuery.

When creating hover animations (for example navigation bars), you might have come across the problem of animation queue buildup: When you mouseover/-out an element a couple of times, the animation will continue even after you stop moving the mouse. Using the stop()-method is a first answer, but creates unnatural animations.

The hoverFlow plugin honors a single mouseover/-out with a full animation cycle while still preventing animation queue buildup.

A queued animation will only run if it corresponds with the current mouse position at "runtime" (that is, when the animation is dequeued, not when the event was triggered). A mouseover animation will only run if the mouse is currently over the element, and a mouseout animation will only run if the mouse is currently not over the element. Otherwise, the animation queue is empied.

Sugar

This plugin requires jQuery +1.3. that includes 1.3 beta releases (already out)

This plugin allows you to define sequences of actions without any callbacks. You can define what will happen after an animation, ajax request, event, etc, without passing any function to the corresponding jQuery methods.

The plugin, while usable, is still in development stage. Any feedback is appreciated.

AjaxQ

AjaxQ is a jQuery plugin that implements AJAX request queueing mechanism.

Why?

There are several reasons why you may need to queue AJAX requests and run them in a sequential manner:

  • Browsers impose a limit on the number of open connections to the server. All requests that do not fit in the limit are going to wait for being run anyway. Internet Explorer does not open more than 2 connections per server at a time by default. Mozilla Firefox, Opera and Safari have a limit of 8 connections per server.
  • Sometimes it is essential to avoid flooding the server with plenty of simultaneous AJAX requests.
  • Web application needs AJAX requests to run one by one by design, the order is important.

Ajax Queue

Ajax Queue is a plugin that helps to manage Ajax race conditions. When multiple Ajax requests are made in rapid succession, the results can be returned out of order. This can cause weird behavior in your application. Ajax Queue is a plugin (actually, 2 plugins) that provide a way to manage these requests. This plugin was written by John Resig and is maintained by Mike Hostetler.