Public AssetListLoader & examples update#4149
Conversation
|
Looks good to me, in general. I've left a bunch of comments. However, should we take a moment to review the |
|
Would it be possible to write a new API in similar format in the first post of this PR? |
Sure, I've added this in. |
I just wonder if the |
It's not used by the examples but it allows other parts of an application to subscribe to the loading of these assets without triggering the load itself. |
Yeah you're right, i've included this in the list of example browser polyfills. |
mvaligursky
left a comment
There was a problem hiding this comment.
approving, nicely done
This PR brings back the AssetListLoader class which allows an array of assets to be loaded before the 'ready' callback is called. This class is made public and includes unit tests.
The examples browser now makes use of the AssetListLoader for asset loading in all examples. The examples browser therefore no longer needs to hoist the application instantiation in each example in order to preload example assets in.
New Public API:
I confirm I have read the contributing guidelines and signed the Contributor License Agreement.