Apply Patterns When Ready

ssApplyPatternsWhenReady improves on ssApplyPatternsIfReady by running it repeatedly at intervals of 100 milliseconds until the request has completed, or a time limit expires.

If it takes a while, it provides feedback to the user - it warns them after 10 seconds, and tells them it is giving up after 20 seconds.

This is quite advanced, and is best understood by viewing and understanding the source code of ApplyPatternsWhenReady.asp.