News for hackers. Stuff that matters.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by onion2k on Tuesday October 25, 2022 @10:51AM (#33331240)
Browsers have had progress bars since ... well, a long time ago. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pr...

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.

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?
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by marricks on Tuesday October 25, 2022 @10:54AM (#33331312)
You're missing the point. Of course we have "the technology" for them, but most companies/people decided it was a good idea to have progress bars lie.