Preempt - Client Side First Code

Update the client side DOM before the server side.

The handler will sleep for 2 seconds to simulate a long processing time. The first button will be disabled in the browser first to prevent extra clicks. Now click the buttons as many times as you can to see the difference

Clicks With:
Clicks Without: