If you are using Selenium to test your web application and you are having some AJAX in it, you may know that the waitForCondition assertion is your friend.
According to the Selenium documentation it:
With this you can define your own condition which defines the end of an AJAX call.
Since I am using Prototypes AJAX mostly, I found this standard waitForCondition quite helpful:
It waits until all ongoing AJAX calls are done and then continues. While this might not be suitable for all places it is definitively better than using the pause command.