bpletzer / jquery.asyncQueue.js

queue for upcoming but yet unknown events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jquery.asyncQueue.js

Usage

// pre-initialize a global queue (before jquery.asyncQueue.js) window.queue = window.queue || [];

// queueing an anonymous function window.queue.push( function(){ //code });

// queueing a standard function with scope and arguments window.queue.push( [ console.log ,window ,firstArg ,secondArg //... ]);

// initializing queue (and executing its contents) $(window).aqueue('queue');

About

queue for upcoming but yet unknown events


Languages

Language:JavaScript 100.0%