News for hackers. Stuff that matters.
Re:Websites have evolved back to static HTML/CSS/JS files by the8472 on Monday March 09, 2020 @02:46AM (#22523458)
> Real-time chat is the most obvious case where the html purist won’t offer an acceptable experience.

The retro approach is to have two frames. One to submit, one to slow-stream a bunch of html elements which we can thankfully now lay out via flexboxes which are highly efficient when it comes to relayout, i.e. only the appended elements would incur some runtime costs, the already rendered ones don't get recomputed.

I have seen chan-style imageboards that update posts as people type (every dozen milliseconds) with 10k posts in a thread. The layout recomputation overhead is really low.

Re:Websites have evolved back to static HTML/CSS/JS files by mnsc on Monday March 09, 2020 @03:57AM (#22523740)
> ... slow-stream a bunch of html elements

Slow-stream?

Re:Websites have evolved back to static HTML/CSS/JS files by the8472 on Monday March 09, 2020 @04:07AM (#22523776)
Keep the socket open and write a div to it each time a new line is posted. Browsers can and do render partial documents.