• Stars
    star
    2,855
  • Rank 15,906 (Top 0.4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 12 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PreloadJS makes preloading assets & getting aggregate progress events easier in JavaScript. It uses XHR2 when available, and falls back to tag-based loading when not.

PreloadJS

PreloadJS is a library to make working with asset preloading easier. It provides a consistent API for loading different file types, automatic detection of XHR (XMLHttpRequest) availability with a fallback to tag-base loading, composite progress events, and a plugin model to assist with preloading in other libraries such as SoundJS.

Example

var queue = new createjs.LoadQueue(false);
queue.on("fileload", handleFileComplete);
queue.loadFile('http://createjs.com/assets/images/png/createjs-badge-dark.png');
function handleFileComplete(event) {
	document.body.appendChild(event.result);
}

Support and Resources

Built by gskinner.com, and is released for free under the MIT license, which means you can use it for almost any purpose (including commercial projects). We appreciate credit where possible, but it is not a requirement.

Classes

LoadQueue The main class that manages all preloading. Instantiate a LoadQueue instance, load a file or manifest, and track progress and complete events. Check out the docs for more information.

More Repositories

1

EaselJS

The Easel Javascript library provides a full, hierarchical display list, a core interaction model, and helper classes to make working with the HTML5 Canvas element much easier.
JavaScript
8,073
star
2

SoundJS

A Javascript library for working with Audio. It provides a consistent API for loading and playing audio on different browsers and devices. Currently supports WebAudio, HTML5 Audio, Cordova / PhoneGap, and a Flash fallback.
JavaScript
4,384
star
3

TweenJS

A simple but powerful tweening / animation library for Javascript. Part of the CreateJS suite of libraries.
JavaScript
3,505
star
4

Zoe

Zoë is an open source tool for generating spritesheet images and frame data from SWF files. It enables illustrators to maintain a familiar workflow while generating animations for EaselJS and other formats.
ActionScript
328
star
5

CreateJS

Repo for combined CreateJS library. Mainly for CDNs.
227
star
6

EaselJSRenderers

Runtime pluggable renderers for EaselJS (Canvas 2D, WebGL, HTML DOM, SVG).
JavaScript
165
star
7

sandbox

Contains demos, helper classes, experiments, and other resources that don't belong in the main repos.
JavaScript
150
star
8

Combined

Hosts the combined CreateJS library, and the tools for building it.
JavaScript
120
star
9

AdobeAnimateDemo

Mini game with visual assets created in Adobe Animate CC
JavaScript
103
star
10

EaselJS-NodeJS

A NodeJS compatible build of EaselJS.
89
star
11

html5ads

An in-depth white paper on building HTML5 advertising with CreateJS and Flash Pro. Includes supporting materials, sample banner ad, and helper classes.
JavaScript
72
star
12

localization

Repo for collaborative creation of localized documentation.
JavaScript
47
star
13

core

Core code shared by two or more CreateJS libraries. For example, the event model.
JavaScript
14
star
14

build

The CreateJS build tools & process.
CSS
10
star