• February 18th, 2008

    Simulate Network Delays

    When developing web applications it is helpful to be able to simulate a slow network. This can help you see how your UI indicators, ajax loaders, etc., will operate in various network situations, unlike your local network which is generally free of any sort of interference.

    These little snippets of code will freeze the execution of your web application for three seconds:

    // PHP
    sleep(3);
    
    // .Net
    System.Threading.Thread.Sleep(3000);
    

    Posted in .Net, PHP | 1 Comment »

Un-Dumbify