HTTP pipelining Technology--ajax request

Source: Internet
Author: User

1. Pipeline technology--the client can send multiple requests to the server, without having to wait for the last request to respond to the next request. Implementing parallel Send Requests

2.ajax--implementing asynchronous refresh of Web pages

Issue: When the user makes multiple AJAX requests, and displays the content in the same element of the page. If the last request time is too long, the subsequent request time is short,

Will cause the last requested data to be overwritten with the following content.

Ajax provides a function that ends the last request, making the last request complete before each request.

The code is as follows:

        /* Terminates last Request *        /if (currentajax! = null) {            currentajax.abort ();        }        Currentajax = $.ajax ()      

  

HTTP pipelining Technology--ajax request

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.