3.4. What does asynchronous get you?So what's the point of an "asynchronous" application if the server responds so fast that it doesn't make a difference anyway? Both of the applications you've built so far are asynchronous. Still, the server responded so fast to your requests that you probably didn't notice any benefit from the asynchronous part of these applications. But what happens if it takes a really long time to get the data back from the server? Or what if you really do need to do two things at one time? You'd like to keep using the application while that's happening, right? That's when you'll really see the benefits of the "asynchronous" part of Ajax. In fact, you're going to build another applicationan Ajax-powered coffee makerwhere being asynchronous makes a big difference. Ready? Let's get started.
|