Real-time updates without JavaScript
harmless.herokuapp.com
harmless.herokuapp.com
main {
display: flex;
flex-direction: column-reverse;
}
The many ::before <style>s are used to update the connection count.If you like these kinds of tricks, there's also an "order" CSS property, which lets you give elements any arbitrary order you like (by giving each element a numeric index). This can be useful for implementing sorting functionality, for example.
(1999)
It's probably not practical for a chat app (DOM just grows infinitely), but it's a great way to show progress of a longish-running process with a bare minimum of means.
It's written in Golang and hosted on a free Heroku instance. I'll probably upload the code somewhere after a bit.
Anyway, it was just a proof of concept. The spam could be blocking using some captcha or registration if necessary.
OP?
The connection count is updated by sending some inline CSS ::before content changes.
People...
Also see John Gabriel's Greater Internet Fuckwad theory: https://www.penny-arcade.com/comic/2004/03/19
Yeah I'm just starting to realise this. Big disappointment.