LGF Comments: Now with Ajax

• Views: 1,262

I’m ready to unveil the first step in the redesign of our commenting system, and I’m sure this is going to be popular with the lizard army.

One of the coolest things about Ajax technology is that it lets you reload only information that needs to be updated. This means you don’t have to reload an entire page’s worth of data when all you want to change is one section.

It’s a classic win-win improvement, because it means less data has to be transferred over the internet—sometimes much less. So our server doesn’t work as hard, and you get the new information much faster.

I’m applying this concept to our comments now, and the new feature is a great example. Below the last comment in each thread you’ll now find an unassuming little button that says, plaintively, ‘new comments.’

If you click that button in an active thread, and there are new comments posted since the last time you loaded the page (or clicked the button), the new comments simply appear automagically at the bottom of list. No more page reloads to follow an interesting thread. Woo-hoo!

It has the potential to radically change the way blog comments work; the speed lets it feel almost like a chat system.

The best is yet to come; this version does not use Ajax for the posting of comments. That’s next on the to-do list. (It’s a bit more complex.)

But this ‘proof of concept’ version is useful enough that I wanted to turn it loose and let it roam free.

Jump to top

Create a PageThis is the LGF Pages posting bookmarklet. To use it, drag this button to your browser's bookmark bar, and title it 'LGF Pages' (or whatever you like). Then browse to a site you want to post, select some text on the page to use for a quote, click the bookmarklet, and the Pages posting window will appear with the title, text, and any embedded video or audio files already filled in, ready to go.
Or... you can just click this button to open the Pages posting window right away.
Last updated: 2023-04-04 11:11 am PDT
LGF User's Guide RSS Feeds

Help support Little Green Footballs!

Subscribe now for ad-free access!Register and sign in to a free LGF account before subscribing, and your ad-free access will be automatically enabled.

Donate with
PayPal
Cash.app
Recent PagesClick to refresh
The Pandemic Cost 7 Million Lives, but Talks to Prevent a Repeat Stall In late 2021, as the world reeled from the arrival of the highly contagious omicron variant of the coronavirus, representatives of almost 200 countries met - some online, some in-person in Geneva - hoping to forestall a future worldwide ...
Cheechako
3 days ago
Views: 115 • Comments: 0 • Rating: 1
Texas County at Center of Border Fight Is Overwhelmed by Migrant Deaths EAGLE PASS, Tex. - The undertaker lighted a cigarette and held it between his latex-gloved fingers as he stood over the bloated body bag lying in the bed of his battered pickup truck. The woman had been fished out ...
Cheechako
2 weeks ago
Views: 276 • Comments: 0 • Rating: 1