Like any other technology, AJAX too has its own set of pros and cons. Here are some of the important ones which one definitely should be aware of before using AJAX.
Enhanced User Experience
Reduced Bandwidth Usage
AJAX reduces the requests to the server by generating the HTML within the browser. As a consequence there is a drastic reduction in bandwidth usage and response time experienced by the user. Using AJAX, one can virtually eliminate the need for reloading of web page, and provide much faster speeds while dealing with real time data.
Increased User Productivity
Faster response time for serving dynamic content directly translates in higher productivity of the user, subsequently leading to increased traffic on the site.
Faster & Enhanced Application Development
AJAX is not tightly coupled with any particular web technology. It can be used with equal ease and power with ASP.Net, J2EE, PHP, or any other technology. With time power of AJAX is growing and more and more features are being available for plug and play kind of use. This significantly reduces the development efforts.
Learning Curve For Developers
Developers need to take special care to learn coding and test of AJAX applications, especially from a security point of view. It needs to be kept in mind that since AJAX is client-side driven it will have its own set of vulnerabilities.
Effects On End Users
Web page served using AJAX is not registered with the browser history engine. As a result if the user hits the ‘back’ button of the browser, the changes will not be reflected. Also, the bookmark feature will not render the web page as the user might be expecting.
Not Search Engine Friendly
Dependency Of Browser Settings