What would be the quickest, most efficient way to reload content on a blog page once change has been detected?
I want to create a blog, which I want to be very user-friendly, and I want the most efficient way to display recent blog posts.
For example, one might want to programmatically reload a div every 5 seconds or so, or they might send a request every 10 milliseconds to a page, which checks for changes in the content of the blog (i.e. if someone else has posted), and then reload the div containing the blog contents once change has been detected.
And what other ways are there? Which one does Twitter or similar services use? Is there's one I'm missing?
UPDATE: It seems AJAX really can't work, and I'll need something along the lines of
node.js or something similar, if you can, please help in that direction please.
This recipe can be found in it's original form on Stack Over Flow.