[]
        
(Showing Draft Content)

ResourceLoader

Interface: ResourceLoader

Defines a low-level loader responsible for retrieving external resources.

This abstraction allows the library to delegate actual network access to the host environment (browser, Node.js, proxy layer, etc.), enabling full control over CORS, authentication, caching, and routing.

Methods

fetch()

fetch(resource): Promise<ArrayBuffer>;

Fetches an external resource and returns its binary content.

Parameters

resource

ResourceProperties

ResourceProperties describing the requested resource, including its type and resolved URL.

Returns

Promise<ArrayBuffer>

A promise resolving to the raw binary data of the resource.