To Ajax, or Not to Ajax

Like all technologies, Ajax can be used for good or for evil. Opinions concerning the best times to use Ajax range from "never" to "whenever possible." I tread the middle ground by keeping in mind the following bad and good uses of Ajax:

Bad: Just Because You Can

No flashy web technique should be unleashed upon your visitors just because you think it's cool—unless, of course, your visitors are going to your site expressly to see cool web tricks.

Bad: It's the Hot New Thing

Similarly, just because Ajax is new doesn't mean it solves all problems, and as we've seen, it introduces new ones. Resist the urge to add Ajax to your site just because it is the hot new thing.

Bad: Replacing Something That Works with Something New and Confusing ...

Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.