O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The primary advantage

The primary advantage of the AJAX web application architecture is that it removes the need to perform a full page reload.

In the scenario that we considered with the news article web page that had 10,000+ comments, we can program the web application to initiate an XHR call when the Next button is pressed, then the server can send back an HTML fragment that contains the next set of comments to display. Once we get back the next set of comments, we can have JavaScript dynamically update the DOM, and completely avoid the need to perform a full page reload!

Figure 1.5 illustrates this approach. The left-most illustration depicts the comments in the comment section. The middle illustration depicts only the comments section ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required