1.0.5 • Published 7 years ago

wtc-utility-preloader v1.0.5

Weekly downloads
107
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago