Using AJAX to Reduce Network Load

One of the first mistakes usually made when someone initially discovers AJAX is to use it to pull full, static HTML pages or static HTML fragments from the server and insert them into the existing page. The idea behind doing this is to speed the load of the initial page. Once the initial page is loaded, then the subpages or fragments are loaded dynamically as required. This approach actually increases network load, since the number of optimally sized TCP/IP packets decreases if you break up a larger send into a series of smaller ones. Thus this misapplication of the AJAX technology actually decreases the scalability of an application.

A better option in this case is to include the static code in the original ...

Get Oracle Database Ajax & PHP Web Application Development 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.