Skip to content

Function.when

by chris on June 1st, 2010

Ever wanted to run a snippet of code after a list of conditions were met, but weren’t sure when that would be?

Now you can make functions wait until conditions are met, which will be checked at intervals (default: 100ms). Check out this example…

EDIT: Thought just occurred to me that the vanilla javascript version is much the same:

EDIT: For those of you jQuery enthusiasts out there:

From → Javascript

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS