Example 2: As example 1 but uses a delay of 2000 millis before the wait page is shown. Try simulating with a value of 500 millis to see that no wait page is shown at all.