On the off chance you don’t want to watch the video, I’ll recap: When accessing certain screens on the FNB site, a progress meter is shown to indicate new content is being flowed into the browser. But it’s not.
Taking the easy way out like this may seem like a non-issue, but what happens when your user loses network connectivity? You guessed it: The progress meter still runs. Doh!
Tracking true activity progress (like time to upload a file) involves constant communication between the server and the client. It used to be pretty difficult to do (and required Perl), but nowadays we have WebSockets and it’s much easier to keep the lines of communication between client and server open.
There is no reason to fake a progress bar. It’s pointless. Especially when you don’t even check to see if the user’s connection is still online.
@AaronGustafson web sockets for a progress bar is probably overkill. Most assets have a loaded event, tracking that is poss the best way.
@seb_ly Fair Enough. But it would depend on the direction something is going, right? An upload wouldn’t have that same option.
@AaronGustafson Oh yeah you’re probably right. Crazy if that’s the only way!