|
|
Registered tutorials: 501 Registered Users: 38304
|
|
Rating: 4 out of 2 votes cast
Category: Technique Introduction
|
Making Ajax Elegantly Fast
Abstract: Reading this tutorials you can take a close look at how the getXHR function is redeclared within the main declaration to simply return the appropriate object back to the client when it is requested
Sometime ago I was messing around with various techniques for ways that we can optimize asynchronous calls to the server via XMLHttpRequest (and the ActiveX equivalent of XMLHTTP). I wrote about one of those techniques known as branching in an article for Digital Web Magazine called Seven JavaScript Techniques You Should Be Using Today back in April, however, there was a flaw in the function that when one request is made before another one is finished, you would run into an error since it is using the same reference to the instance object for the request. That’s cool in theory, but bad in practice. The benefit you get with that is that you never create more than one XMLHttpRequest object for all your requests. This is fine for light weight use, and when you know for sure that you won’t be making frequent requests simultaneously. But when does that ever happen? Really.
|
Reviews:
Rate and Review This Site
No reviews yet
Statistic Information About this Resource:
| Total Hits: |
556 |
| Unique Hits: |
542 |
| |
Daily |
Weekly |
Monthly |
| |
Unique |
Total |
Unique |
Total |
Unique |
Total |
| Average |
0 |
0 |
0 |
0 |
0.2 |
0.3 |
| Current |
0 |
0 |
0 |
0 |
0 |
0 |
| Previous |
0 |
0 |
0 |
0 |
0 |
0 |
| Feb 27 |
0 |
0 |
0 |
0 |
0 |
0 |
| Feb 26 |
0 |
0 |
0 |
0 |
0 |
0 |
| Feb 25 |
0 |
0 |
0 |
0 |
1 |
1 |
| Feb 24 |
0 |
0 |
0 |
0 |
1 |
2 |
| Feb 23 |
0 |
0 |
0 |
0 |
0 |
0 |
| Feb 22 |
0 |
0 |
0 |
0 |
0 |
0 |
| Feb 21 |
0 |
0 |
0 |
0 |
0 |
0 |
| Feb 20 |
0 |
0 |
0 |
0 |
0 |
0 |
| Highest |
17 |
17 |
66 |
67 |
246 |
252 |
|
|
|
Script Execution Time: 0.40804 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2
|