Get/post Request
Post send data 2 times, one header, one body, so post will be faster
Xmlhttprequest.getallresponseheaders ()
Xmlhttprequest.responsetext
Xmlhttprequest.setrequestheader
Xmlhttprequest.open ()
Xmlhttprequest.send
Cross-domain requests: dynamic footstep insertion
Multipart XHR: Slicing processing
http://techfoolery.com/mxhr/
Imagestring.split (' \u0001 '),
if (req.readystate===3) {
Window.setinterval (FN, 15)
Req.responseText.substring (lastlength, length)
}
The most lightweight request "semaphore"
var params=["step=2", ' page=3 ']
New Image (). src=url+ '? ' +params.join (' & ')
Image.onload=function () {
if (this.width==1) {success}
if (this.width==2) {failure, try again}
}
Data format: Performance comparisons, pros and cons
Verbose XML, Verbose json, simple JSON, Array JSON, Custom Format (Script insertion)
Simple XML, Verbose json-p, simple json-p, Array json-p, Custom Format (XHR)
Data cache: Cookie, Last Modified Date, Expire, Request Header, Server side configuration
Long Poll:
iframe, Comet,
What to dig into-Ajax efficient development