MCPcopy Index your code
hub / github.com/CreateJS/PreloadJS

github.com/CreateJS/PreloadJS @v1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.1 ↗ · + Follow
347 symbols 542 edges 60 files 76 documented · 22%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Core symbols most depended-on inside this repo

clearTimeout
called by 49
tests/lib/jasmine-2.0.2/jasmine.js
getJasmineRequireObj
called by 42
tests/lib/jasmine-2.0.2/jasmine.js
createDom
called by 35
tests/lib/jasmine-2.0.2/jasmine-html.js
setTimeout
called by 30
tests/lib/jasmine-2.0.2/jasmine.js
abort
called by 18
lib/preloadjs-NEXT.js
abort
called by 18
lib/preloadjs.js
abort
called by 18
src/preloadjs/utils/json3.js
toPaddedString
called by 9
lib/preloadjs-NEXT.js

Shape

Function 347

Languages

TypeScript100%

Modules by API surface

tests/lib/jasmine-2.0.2/jasmine.js90 symbols
lib/preloadjs.min.js38 symbols
lib/preloadjs.js38 symbols
lib/preloadjs-NEXT.min.js38 symbols
lib/preloadjs-NEXT.js38 symbols
_assets/libs/soundjs-NEXT.min.js24 symbols
tests/lib/jasmine-2.0.2/jasmine-html.js14 symbols
src/preloadjs/utils/json3.js11 symbols
_assets/libs/tweenjs-NEXT.min.js11 symbols
tests/lib/jasmine-2.0.2/console.js8 symbols
_assets/libs/easeljs-NEXT.min.js3 symbols
tests/tasks/findopenport.js2 symbols

For agents

$ claude mcp add PreloadJS \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact