We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I wish there is a more realistic progress handler based on bytes.
Example code:
let assets = [ { name : 'image1', src : 'images/image1.png', bytes: 120366 }, // 6.4% { name : 'image2', src : 'images/image2.png', bytes: 170214 }, // 9.0% { name : 'image3', src : 'images/image3.png', bytes: 192252 }, // 10.2% { name : 'binary', src : 'data/binary-data-001', bytes: 1401286 } // 74.4% ]; let updateProgressDisplay = percent => { // do something }; me.loader.preload(assets, { completed: ()=>this.loaded(), progress: (e) => updateProgressDisplay(e.percent)), });
But it's not a good way if input the bytes numbers manually.
It will be better if some build scripts generate those numbers automatically.
What do you think about it?
.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I wish there is a more realistic progress handler based on bytes.
Example code:
But it's not a good way if input the bytes numbers manually.
It will be better if some build scripts generate those numbers automatically.
What do you think about it?
.
The text was updated successfully, but these errors were encountered: