This custom control creates loading masks on the loading of a page and in partial refreshes.  Choose mask colors and loading images and turn on or off the page loading mask.  This will create a mask for every partial refresh on the page without you having to put anything in the events on the Xpage.

 

Start Up Mask

Partial Refresh Mask