Pros of Using AJAX
Improved User Experience — The enriched user experience provided by AJAX is the foremost benefit. AJAX allows webpages to update serially by exchanging a small amount of data with the server. This way it is possible to update parts of a webpage, without reloading the whole page. Classic webpages must reload the entire page and are cumbersome. AJAX increases the browser’s performance and facilitates faster browsing speed thereby providing a responsive user experience.
Enhanced User Productivity — The AJAX library provides object-oriented helper functions that dramatically increase the productivity while decreasing frustration. In addition, a well-configured ASP.NET application has its own data access layer and business layer. Finally, the “robust” ASP.NET application includes a UI layer where server side operations are performed. If you already have included these features, AJAX only needs an extra layer of AJAX-specific services and some enrichment on client features. This way the deployment cost is reduced and the productivity of the user can be enhanced. Popular websites like Amazon, Google, Yahoo, etc. also incorporate AJAX in their development.
Increased Compatibility — AJAX can be compatible with ASP.NET, J2EE, PHP, or any languages. It almost supports all popular browsers such as Internet Explorer 5 and above, Mozilla Firefox 1.0 and above, Apple Safari 1.2 and above, Opera 7.6 and above, and RockMelt.
Supports Asynchronous Processing — Asynchronous data retrieval can be done by using XmlHttpRequest, the backbone of AJAX applications. Hence, requests are handled effectively and dynamic content loading is brought to higher heights by improving the performance considerably.
Easier Navigation — AJAX applications can be built to allow easy transition between WebPages to the users instead of using conventional back and forward buttons on a browser.
Cons of Using AJAX
Insecurity — The webpage can be difficult to debug, increases the code size of your webpage, and makes your webpage prone to severe security threats.
Increased load on Web Server — The load can be increased depending on the user if you are adding an auto-update type that hits the server every few seconds.