Live data from Hacker News

Show a real-time user count without any client-side Javascript

minipenguin.com

1–10 of 24 posts

Re: Show a real-time user count without any client-side Javascript

#6

You could do this more efficiently with an iframe. Leave the connection open until there's an update and then send a meta refresh tag.

Wouldn't that be accomplishing the same thing— since M-JPEG keeps the connection open— except you're forcing the client to send another request when they refresh?

Re: Show a real-time user count without any client-side Javascript

#7

You could do this more efficiently with an iframe. Leave the connection open until there's an update and then send a meta refresh tag.

Yeah, as ceol said, that'd essentially be polling. Plus, if you can place an iframe, you can almost always place Javascript which makes something with ajax or socket.io somewhat more suitable.

But there are many places on the internet where you can only link an image, such as in sites with markdown, bbcode, or hotlinked avatars.

Post reply on HN