PreloadJS Custom Loaders in Plugins

This sample shows how to a plugin can provide a custom loader to PreloadJS. This enables plugins to create their own loader classes and instances (and add listeners or additional functionality), but rely on PreloadJS to manage everything else.

This example uses a simple image loader, and the plugin has an opportunity to modify it once it is loaded (by setting the image size).