Main interface representing an object to load. src is the only mandatory key.

Hierarchy

  • LoadItem

Properties

body?: BodyMethod

OptionalBodyMethod used to handle the Response.

Default to blob for Image, Video and Audio. See AsyncPreloader.defaultBodyMethod.

fontOptions?: FontOptions

Font options used by FontFace and FontFaceObserver

id?: unknown

Optional key.

Used to retrieve the LoadedValue using AsyncPreloader.items.get(id)

loader?: LoaderKey

Optional LoaderKey.

If none specified, the loader is inferred from the file extension. Default to Text if the extension doesn't match any of the extensions specified in AsyncPreloader.loaders.

Note: It needs to be specified for Font and Audio (webm, ogg).

mimeType?: DOMParserSupportedType

Optional mimeType used to handle the Response.

Note: Only used to parse the document in the Xml Loader.

noDecode?: boolean

Optional disable image decoding.

Note: Only used for loadImage.

options?: RequestInit

Optional RequestInit object to pass to the fetch method.

src: RequestInfo

Input for the Fetch API

Generated using TypeDoc