Hacker News new | ask | show | jobs
by treeface 5582 days ago
Try jQuery's deferred events. It is, IMO, the most elegant actual-JavaScript solution to the problem I've seen.