Skip to content

Instantly share code, notes, and snippets.

View brailateo's full-sized avatar

Constantin Teodorescu brailateo

View GitHub Profile
@chrisyip
chrisyip / append-css-link-or-rule.js
Created November 29, 2011 07:25
Dynamically add CSS link or rule to DOM w/ pure JavaScript
@maccman
maccman / jquery.ajax.queue.coffee
Last active January 13, 2018 12:03
Queueing jQuery Ajax requests. Usage $.ajax({queue: true})
$ = jQuery
queues = {}
running = false
queue = (name) ->
name = 'default' if name is true
queues[name] or= []
next = (name) ->