News for hackers. Stuff that matters.
Re:GitHub – kkuchta/CSS-only-chat: A monstrous async web cha... by p4bl0 on Saturday July 01, 2023 @04:33AM (#36548044)
> the page also never reloads

Well, that's really only technically correct, since the strategy here is to replace the whole page with a new version of it on each virtual keypress, by using CSS to hide the previous HTML and then receiving the new updated version of the web page's content. The only tricks is to use a chunked content-transfer to have this all happen over a single HTTP request, so yes technically the page does noes reload, but it's pretty much the same thing as if it did.

Really cool trick nonetheless! And more importantly fun trick, and fun read :).

Re:GitHub – kkuchta/CSS-only-chat: A monstrous async web cha... by pcthrowaway on Saturday July 01, 2023 @06:19AM (#36548559)
I think it'd at least eliminate some of the overhead with establishing new connections on every request with HTTP/1.1 or HTTP/2, but I'm not sure about HTTP/3