# ResourceLoader

## Content

# 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()

```ts
fetch(resource): Promise<ArrayBuffer>;
```

Fetches an external resource and returns its binary content.

#### Parameters

##### resource

[`ResourceProperties`](ResourceProperties)

[ResourceProperties](ResourceProperties) describing the requested resource, including its type and resolved URL.

#### Returns

`Promise`&lt;`ArrayBuffer`&gt;

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