Skip to content

anaplian/assetLoaderJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

assetLoader.js

Javascript helper module that loads images asynchronously from their URLs. Allows you to wait until all the images are loaded before starting your program, without blocking.

Example Usage

var imageURLs = {
    firstImage: 'path/to/image.jpg',
    secondImage: 'path/to/image2.jpg'
};

assetLoader(imageURLs, function(images){
    /*
     * images = Object {firstImage: img, secondImage: img}
     * Do something with the images here.
     */
});

About

Javascript helper module that loads images asynchronously from their URLs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published