Function.when
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:






