Asynchronous Loading using the WebPLoader
To load a WebP file asynchronously is a simple matter of using the WebPLoader. Firstly you create a new loader using the WebP.service.createLoader() function. This gives you access to a WebPLoader instance which you can then attach event listeners for
To start the load simply call
load on the loader and wait for one of the
above events to fire.
Then in your event handlers: