4 ms·
>Progress bars are inherently difficult to create since you need to predict the future to provide an accurate status on progress. No. You just need to display
by taytus 5y ago
>Progress bars are inherently difficult to create since you need to predict the future to provide an accurate status on progress.
No. You just need to display the progress.
If you need to load X KB in assets, and you have loaded Y KB in assets, that's all you need.
You don't have to add time estimations. You could, but you don't have to.
- Kiro 5y agoHow can you from JavaScript see how much of an asset has loaded?
- frosted-flakes 5y agoPresumably this can be calculated server-side. So you could send the full size right away which the JS could use to calculate loading progress.
- still_grokking 5y agoYou mean we should invent something like the HTTP Content-Length header?
- madeofpalk 5y ago> If you need to load X KB in assets, How do you know what you need to load in the first place? For sufficiently advanced applications this might be harder than you think.