I want to slow down my application by adding latency for ajax requests. I have two options: do it in javascript and do it server side. With javascript, I could easily add setTimeout to my requests, but there are about 30 different requests, and I am wondering if there is a better way with less code.
I want to slow down server side ajax requests. What is the best way to do this? I use about 25 different asmx web services (will be converted to wcf soon), and I am wondering how to make sure that all requests have 1000 ms of delay.
My goal is to change as little code as possible so that I can enable / disable this feature by changing as little as possible.
Thanks for your suggestions.
In case you are wondering why: I am running my local machine. I am going to have a user testing session and I need to simulate real ajax requests. Without delay, the ajax request happens almost instantly.
source
share