News for hackers. Stuff that matters.
Re:Why some apps use fake progress bars (2017) by chatmasta on Saturday February 03, 2018 @04:46AM (#16296942)
I solved this in a react app I’m working on by overriding XMLHttpRequest.prototype.open to listen for the request lifecycle events and update a global “percent loaded” used to render a progress bar at the top of the page.

It’s far from perfect but is at least a good enough heuristic for the user to know when the page is loading a request.

There are no comments on this comment yet.