The advantages of ajax include: improved performance and speed, good interactive performance, asynchronous calls, bandwidth saving, etc.; the disadvantages of ajax include: increased design and development time, more complex than building classic web applications, and browsing with JavaScript disabled. The device cannot use the application, etc. Let’s take a look at the specific content below, hoping it will be helpful to you.
What is ajax?
ajax stands for Asynchronous JavaScript and XML. The word "asynchronous" means that the user does not need to wait for the server to reply.
AJAX is not a programming or scripting language, there is no new invention, and there are no separate web services, modules or plug-ins. It is a set of interrelated technologies such as javascript, dom, xml, html, css, etc.
Ajax implementation uses JavaScript functions to call methods from web services, web page requests to get responses in response.
Advantages of AJAX
1. Improved performance and speed
Reduce traffic transmission between the client and server , while reducing the response time for both parties, the response is faster, thus improving performance and speed.
2. Good interactive performance
Using ajax, you can develop faster and more interactive web applications.
3. Asynchronous call
AJAX makes an asynchronous call to the Web server. This means that the client browser avoids waiting for all data to arrive before starting rendering.
4. Save bandwidth
Ajax-based applications use less server bandwidth because there is no need to reload the complete page.
5. Using XMLHttpRequest
##XMLHttpRequest plays an important role in Ajax Web development technology. XMLHttpRequest is a special JavaScript object designed by Microsoft. The XMLHttpRequest object is called as an asynchronous HTTP request to the server to transfer data. It is used to make requests to non-Ajax pages. 6. Have open source JavaScript libraries: JQuery, Prototype, Scriptaculous, etc. 7. AJAX communicates through HTTP protocol.Disadvantages of AJAX
1. Increased design and development timeAJAX Video Tutorial!
The above is the detailed content of What are the advantages and disadvantages of ajax. For more information, please follow other related articles on the PHP Chinese website!