Curiosity is bliss    Archive    Feed    About    Search

Julien Couvreur's programming blog and more

XmlHttpRequest - Add Latency

 

I found about Harry Fuecks' AJAX Proxy thru this post on AJAX apps and latency.
Network latency is indeed very important to take in account when building a responsive web application, and its easy for developpers using their local webserver to overlook. Although AJAX web apps do optimize the network traffic better than traditional web sites, they still face the issue of latency.

Harry's proxy is a tool to help developers test their AJAX apps under more realistic network conditions, by adding some latency to the calls to the server. But it seemed overkill compared to a Greasemonkey-based solution, so I put together a really short user script that mirrors the behavior of the proxy (and should work for https pages): XmlHttpRequest - Add Latency.
It should be much easier to install than the python based proxy server; just install the script and configure the sites that you want it to run on. You can also edit the script to modify the amount of delay that is injected.

______________________________________

I just updated the script to run in Firefox 1.5 and Greasemonkey 0.6.4. Older versions are not supported anymore.

Posted by: Julien Couvreur (January 13, 2006 10:50 AM)
comments powered by Disqus