Phaser API Documentation

  Version: 
ScriptFileConfig
Properties:
name type arguments Default description
key string

The key of the file. Must be unique within the Loader.

url string <optional>

The absolute or relative URL to load the file from.

extension string <optional> 'js'

The default file extension to use if no url is provided.

type string <optional> 'script'

The script type. Should be either 'script' for classic JavaScript, or 'module' if the file contains an exported module.

xhrSettings Phaser.Types.Loader.XHRSettingsObject <optional>

Extra XHR Settings specifically for this file.

Type:
object