We have forms that use Java applets for various purposes, and when users open a document in edit mode, it can sometimes take a while to load all the applets. If the user clicks on an action bar button before the page has finished loading, they receive an error message that some object is not defined. Here is a simple technique to prevent that from occurring.
At the very top of each form, place the following pass-thru-html:
<BODY Style="visibility: hidden">
You may wish to put this line, by itself, in a subform and then simply insert the subform in your forms.
This will hide the entire page until the page has finished loading...and no more "object expected" errors!