Delay to next function in method chain
This isn’t easy to do. jQuery uses a specific queue system. Suppose you want to do it without jQuery, you would have to implement a queue yourself. For example this very simplistic implementation : var foo = function() { var queue = []; var timer; this.delay = function(per) { timer = setTimeout(function(){ timer = 0; … Read more