Wednesday, July 9, 2008

Reducing Page Load Time

Reducing Page Load Time:

It is accected by all of us from the experience that lesser the page loading time, the better user experinence.Consider the scnarion when an user has to wait more thant ten(10) seconds for page
to render after clicking a button or after submitting a form.

Why this amount of delay? Well this is because after submitting a form to the server ,server process the whole of the page(url) again.That is server produces all the HTML tags,images and all that heavy stuffs.This information is fetched from the server to the client and then again client browser interprets the server response.

So two redundant process are occuring after each user actions.Can we avaoid this?
Tell me can we?

And the good news is that ,YES WE CAN.
Some of us know about AJAX.
Using AJAX we can reduce page load time to minimal.Say we want to update shopping cart items
when the user selects/deletes any item.Previously we have to make a server trip or very complex javascript locgic for this purpose.

But with AJAX we dont need any of them.Interested???
Read ON..........................

No comments: