LGF Comments: Now with Ajax

Charles Johnsonfollow me on twitter
Wed Jun 20, 2007 at 2:16 pm PDT • Views: 240

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.

Advertisement

790 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Account Settings Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► LGF Hits

► Resources

► Never Forget

► Statistics

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Ron Paul knocked some sense into me and now you guys seem really are out there.

TwitterFacebook
LGF Pages
Recent Pages

researchok
Syria: Oil Pipeline Blown Up in Rebel City of Homs as Forces Move Further Into Capital Damascus
1 hour, 36 minutes ago
Views: 39 • Comments: 0
Tweets: 0 • Rating: 1

researchok
California's Demographic Revolution
2 hours, 20 minutes ago
Views: 49 • Comments: 0
Tweets: 0 • Rating: 1

researchok
The Folly of Internet Freedom: The Mistake of Talking About the Internet as a Human Right
2 hours, 22 minutes ago
Views: 39 • Comments: 0
Tweets: 0 • Rating: 1

researchok
The Mobility Myth: Why Everyone Overestimates American Equality of Opportunity
2 hours, 24 minutes ago
Views: 40 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Supreme Makeover
2 hours, 25 minutes ago
Views: 37 • Comments: 0
Tweets: 0 • Rating: 0

researchok
A Pattern Emerges
2 hours, 25 minutes ago
Views: 39 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Thai Police Charge 2 Over Bangkok Blasts as Iran Denies Involvement
2 hours, 29 minutes ago
Views: 46 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Putin Won't Go Quietly - if at All
2 hours, 32 minutes ago
Views: 54 • Comments: 0
Tweets: 0 • Rating: 1

researchok
12 Countries at Risk of New Economic Crises
2 hours, 32 minutes ago
Views: 44 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Catholic Bishops Join Culture War on Obama: Margaret Carlson
2 hours, 33 minutes ago
Views: 57 • Comments: 0
Tweets: 0 • Rating: 1

 Frank says:

DENSE, PUTRID VAPORS from a SMOKE GUN (we rent it) -- From another Zappa graphic, this time a poster advertising a concert: "Therapeutic Abortion with the Mothers..."