This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ = jQuery | |
queues = {} | |
running = false | |
queue = (name) -> | |
name = 'default' if name is true | |
queues[name] or= [] | |
next = (name) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create a <link> with specific URL | |
var addLink = function(url){ | |
var link = document.createElement('link'); | |
link.src = url; | |
link.rel = 'stylesheet'; | |
link.type = 'text/css'; // no need for HTML5 | |
document.getElementsByTagName('head')[0].appendChild(link); // for IE6 | |
}; | |
// create a style that can append CSS rules to <head> |