phaser - v4.0.0-rc.4
    Preparing search index...

    Type Alias LoaderConfig

    type LoaderConfig = {
        async?: boolean;
        baseURL?: string;
        crossOrigin?: string;
        imageLoadType?: string;
        localScheme?: string[];
        maxParallelDownloads?: number;
        maxRetries?: number;
        password?: string;
        path?: string;
        responseType?: string;
        timeout?: number;
        user?: string;
        withCredentials?: boolean;
    }
    Index

    Properties

    async?: boolean

    Should the XHR request use async or not?

    baseURL?: string

    A URL used to resolve paths given to the loader. Example: 'http://labs.phaser.io/assets/'.

    crossOrigin?: string

    'anonymous', 'use-credentials', or undefined. If you're not making cross-origin requests, leave this as undefined. See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes.

    imageLoadType?: string

    Optional load type for image, XHR is default, or HTMLImageElement for a lightweight way.

    localScheme?: string[]

    An optional array of schemes that the Loader considers as being 'local' files. Defaults to: [ 'file://', 'capacitor://' ] if not specified.

    maxParallelDownloads?: number

    The maximum number of resources the loader will start loading at once.

    maxRetries?: number

    The number of times to retry the file load if it fails.

    password?: string

    Optional password for all XHR requests.

    path?: string

    A URL path used to resolve relative paths given to the loader. Example: 'images/sprites/'.

    responseType?: string

    The response type of the XHR request, e.g. blob, text, etc.

    timeout?: number

    Optional XHR timeout value, in ms.

    user?: string

    Optional username for all XHR requests.

    withCredentials?: boolean

    Optional XHR withCredentials value.