I have added my first XSnippet today and it’s the Standby custom control.
If you add the code to a custom control and drag in into an XPage all events done in this XPage will be intercepted and if the event taks more than 200 milli seconds the dojo standby widget will show up and prevent the user from clicking.
http://openntf.org/XSnippets.nsf/snippet.xsp?id=standby-dialog-custom-control
Some of the code were originally created by two great XPage guys
Tommy Valand and Serdar Başeğmez