If a user were using a slow Internet connection, he would have found that it takes time for him to have his web page displayed (downloaded) at his client computer. Nowadays, only the first page of his web site will take a long time to be downloaded; the rest of the pages will come very fast. Keep reading to learn how we can accomplish this trick. It's all thanks to Active Client Pages and the magic of AJAX.
Any information stored at the server, and its analysis, can be presented quickly to the user using ACP, independent of whether the Internet connection is fast or slow. Only the first page may take some time to be downloaded through a slow Internet connection.
Web pages are becoming voluminous because authors are putting a lot of script into them. This leads to slow download time. With ACP, the download time will no longer be slow, because the page will be downloaded in bits; only the first bit may take a long time.
If you understand your scripting language very well, you will pay less for hosting since the analysis will now be done by your script at the client and not by some program at the server.
ACP frees the server from work and so increases the overall speed of the World Wide Web. At the limit, if every client uses ACP, a client will not have to wait too long for the server to serve other clients before it is served, since the processing will be done at the client and not at the server; in other words, the server spends less time serving each client. One of the aims of N-Tier systems is to free the server from work. ACP also serves that purpose.
Secret of Active Client Pages
The secret of Active Client Pages is that, after the first page has been downloaded by the browser, other pages or data are downloaded in advance in the background, without the user knowing, and stored in an HTML master page (or frameset). This master page or frameset is the first page downloaded. By the time the user has finished reading and dealing with the first page, the information for the next few pages has arrived at the browser. When the user needs the next page, the browser displays it from the store (master page).
The Ajax Approach
I will not present Chuck's approach as he did in his web pages. I present a modified form of it, which I call The Ajax Approach. I came up with this modification because I had to take into consideration the advantages mentioned above. Another discoverer of ACP is Vlad (see above). I have to mention that Vlad discovered his method before Ajax was invented. However, Vlad and Chuck's philosophies are the same.
My philosophy is also the same. I have my own approach, on which I will write a series later. I had my inspiration from the works of Vlad and Chuck. My approach combines Vlad's and Chuck's works with a lot of my additions. But now, let us continue with the Ajax Approach.