withSyncPoints(callback, callbackContext) → {Phaser.Loader}
Add a synchronization point to the assets/files added within the supplied callback.
A synchronization point denotes that an asset must be completely loaded before
subsequent assets can be loaded. An asset marked as a sync-point does not need to wait
for previous assets to load (unless they are sync-points). Resources, such as packs, may still
be downloaded around sync-points, as long as they do not finalize loading.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
callback | function | The callback is invoked and is supplied with a single argument: the loader. | ||
callbackContext | object | <optional> | (loader) | Context for the callback. |
Returns
This Loader instance.
- Source code: loader/Loader.js (Line 1649)
Please login to continue.