1.0.5 • Published 8 years ago

wtc-utility-preloader v1.0.5

Weekly downloads
107
License
MIT
Repository
github
Last release
8 years ago

Preloader

Simple preloader class.

Requirements:

none

Options:

Preloader(<Object> options)

Default options

{
  debug: false //set to true if you want console logs.
}

Usage:

//ES6 import
import Preloader from 'wtc-utility-preloader';

//Instanciate new Preloader
let preloader = new Preloader();

//ADD assets
preloader.add('imagename.jpg', 'image');
// OR use an ARRAY
preloader.add([
  {file: 'imagename.jpg', type:'image'},
  {file: 'imagename.jpg', type:'image'}
]);
preloader.load(callback);

TODO

  • Improve to accept any type of file and use ajax.
1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago