News for hackers. Stuff that matters.
Re:GitHub – kkuchta/CSS-only-chat: A monstrous async web cha... by ComputerGuru on Friday June 30, 2023 @09:34PM (#36545326)
There’s also multipart/x-mixed-replace for rendering only the latest update (replacing previous content) but iirc Chrome dropped support for that when content type is HTML [0].

[0]: https://news.ycombinator.com/item?id=7349266

Re:GitHub – kkuchta/CSS-only-chat: A monstrous async web cha... by eyegor on Friday June 30, 2023 @09:37PM (#36545345)
I can tell you that it still works in chrome, this method was used by one of my coworkers as a quick and dirty hack until we had time to implement a real solution for data streaming. It worked fine in all major browsers ~2 weeks ago.
Re:GitHub – kkuchta/CSS-only-chat: A monstrous async web cha... by ComputerGuru on Friday June 30, 2023 @09:39PM (#36545364)
I’m not sure what context you were using it in? It still works for non-HTML content types, can be used for mjpeg video streams, etc but you shouldn’t be able to use it to replace the previously rendered HTML contents of a frame.
Re:GitHub – kkuchta/CSS-only-chat: A monstrous async web cha... by eyegor on Friday June 30, 2023 @09:43PM (#36545404)
Hmm I don't remember if we did dom manipulation in there. It was definitely used for video streaming though. There's a good chance we only used it for mjpeg and canvas shenanigans.