thinkpixellab / PxLoader

PxLoader is a simple JavasScript library for creating preloaders and resource downloaders for HTML5 apps.
http://thinkpixellab.com/pxloader
1.11k stars 173 forks source link

Added `PxLoaderAudio` plugin for HTML5 audio element-based preloading #52

Closed robinnorth closed 8 years ago

robinnorth commented 8 years ago

Here's another feature PR for you, @joelfillmore. For my current project I need to be able to preload some audio assets, but don't want the overhead of including SoundManager 2 to use with PxLoaderSound, so I've created a new PxLoaderAudio plugin that's based on PxLoaderVideo to load audio assets via HTML5 <audio> elements.

It's a feature someone else has already implemented in a similar manner in a PxLoader fork (https://github.com/hammerlabs/PxLoader) for similar reasons, so I assume it may be of some use to others.

joelfillmore commented 8 years ago

Looks great, thanks @robinnorth!