Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

waitanddo

Useful utility function for ensuring assets are loaded before trying to use them.

To use, imagine that you're loading a file and you want to make sure it exists before trying to use it:

load('/mycoolthing.js');

waitAndDo({
    test: function() { return !!MyCoolThing; }
    , do: MyCoolThing.init
});

About

Useful utility function for ensuring assets are loaded before trying to use them.

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages