Why is it generally a good practice to reuse an instantiated XMLHttpRequest object??

What will be an ideal response?


Opening and closing HTTP connections represent a significant bottleneck in loading a web page, increasing the amount of time it takes for a document to load. To improve performance between client requests and server responses, HTTP/1.1 automatically keeps the client-server connection open until the client or server explicitly closes it by assigning a value ofcloseto theConnectionheader. This means that you can make your Ajax programs faster by reusing an instantiatedXMLHttpRequestobject instead of re-creating it each time you send a server request.

Computer Science & Information Technology

You might also like to view...

In database terminology, a set of entities refers to a

a. field b. column c. table d. information

Computer Science & Information Technology

Each argument in a function is separated by a semi-colon

Indicate whether the statement is true or false.

Computer Science & Information Technology

What is a RAT?

A. Remote Access Traffic B. Remote application Trojan C. Rapid access Trojan D. Remote access Trojan

Computer Science & Information Technology

A ____ identifies the sender of an e-mail message and may contain additional information, such as a job title and phone number(s).

A. signature line B. greeting line C. subject line D. closing line

Computer Science & Information Technology