Default body method to be called on the Response from fetch if no body option is specified on the LoadItem
Default loader to use if no loader key is specified in the LoadItem or if the extension doesn't match any of the AsyncPreloader.loaders extensions
Object that contains the loaded items
Load an item and parse the Response as arrayBuffer
Item to load
Fulfilled value of parsed Response
Load an item in one of the following cases:
Item to load
Fulfilled value of parsed Response according to the "body" option. Defaults to an HTMLAudioElement with a blob as srcObject or src.
Load an item and parse the Response as blob
Item to load
Fulfilled value of parsed Response
Load an item and parse the Response as bytes
Item to load
Fulfilled value of parsed Response
Load a font via FontFace or check a font is loaded via FontFaceObserver instance
Item to load (id correspond to the font family name).
Fulfilled value with FontFace instance or initial id if no src provided.
Load an item and parse the Response as formData
Item to load
Fulfilled value of parsed Response
Load an item in one of the following cases:
Item to load
Fulfilled value with a decoded HTMLImageElement instance of or a parsed Response according to the "body" option. Defaults to a decoded HTMLImageElement.
Load a single item
Item to load
Resolve when item is loaded, reject for any error
Load the specified manifest (array of items)
Items to load
Resolve when all items are loaded, reject for any error
Load an item and parse the Response as json
Item to load
Fulfilled value of parsed Response
Load a manifest of items
Manifest src url
Manifest key in the JSON object containing the array of LoadItem.
Load an item and parse the Response as text
Item to load
Fulfilled value of parsed Response
Load an item in one of the following cases:
Item to load
Fulfilled value of parsed Response according to the "body" option. Defaults to an HTMLVideoElement with a blob as srcObject or src.
Load an item in one of the following cases:
Item to load (need a mimeType specified or default to "application/xml")
Result of Response parsed as a document.
AsyncPreloader: assets preloader using ES2017 async/await and fetch.
It exports an instance of itself as default so you can:
to use directly as a singleton or
if you need more than one instance.