Advanced
should the loader log to the console
Controls the active state of the background loader. When active, the loader will continue processing its queue. When inactive, loading is paused.
Whether the background loader is currently active
// Pause background loading
backgroundLoader.active = false;
// Resume background loading
backgroundLoader.active = true;
// Check current state
console.log(backgroundLoader.active); // true/false
// Common use case: Pause during intensive operations
backgroundLoader.active = false; // Pause background loading
... // Perform high-priority tasks
backgroundLoader.active = true; // Resume background loading
The BackgroundLoader handles loading assets passively in the background to prepare them for future use. It loads one asset at a time to minimize impact on application performance.
Key features:
Example
You typically do not need to use this class directly. Use the main Assets.backgroundLoad API instead.
Remarks
Assets.load()
is calledSee