z-loader · api demo
The loader is live above (scroll up or wait). Use the controls below to drive it from your code.
0%
// Drop z-loader.js into your page, then:
const loader = new ZLoader();
// Drive the progress bar (0–100)
loader.setProgress(42);
// Update the status phrase
loader.setStatus('compiling shaders');
// Push a message to the ticker
loader.log('asset bundle 3/7 loaded');
// Auto-mirror console.log / warn / error
loader.interceptConsole();
// Dismiss when done
loader.hide();