Ben Bradley
  • Fur Sale

JavaScript Asynch Simulator

6/5/2013

0 Comments

 
In the course of my development, I've sometimes found it necessary to simulate delay or latency as I'm often requesting resources that are on my local development machine and I get response times that don't reflect the real world.  To help create this simulated latency, I whipped together a simple little delay function that inserts random wait periods to better reflect what might happen in a production, publicly served web app.
0 Comments



Leave a Reply.

    Picture
    I am a geek.  This is where I share my geekery.
    • GitHub.com
    • JSBin.com
    • NodeJS.org
    • npmjs.org

    Archives

    December 2013
    September 2013
    June 2013
    May 2013

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.