Re:Ask HN: What is your fav “I can't believe in 2022 this st...
by marginalia_nu on Tuesday October 25, 2022 @10:56AM
(#33331365)
Sure you can render them, that isn't the hard part, but can you make them work as well as in an immediate mode GUI?
Implementing a progress bar that works for things like "bytes uploaded" or "number of tasks in the queue" on the frontend is fairly trivial. The hard bit is how to transmit a progress value from the backend to the frontend. Typically that requires setting up either a socket or a keepalive connection, or polling an endpoint from the frontend, which is enough of a pain that very few web apps bother.
Ultimately everything required for this sort of feature is right there in every browser. It's the backend that's usually lacking.