Skip to content

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.

License

Notifications You must be signed in to change notification settings

CreateJS/PreloadJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4938426 · Jul 24, 2023
Sep 14, 2017
Oct 16, 2017
Apr 4, 2018
Oct 16, 2017
Dec 9, 2014
Sep 15, 2017
Sep 18, 2017
Apr 20, 2021
Sep 18, 2017
Mar 30, 2015
Sep 15, 2017
Dec 6, 2017
Nov 10, 2014
Feb 1, 2016
Nov 10, 2014
Sep 27, 2017
Sep 27, 2017
Dec 17, 2014
Nov 21, 2018

Repository files navigation

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.

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published