How to catch the event of a page is loaded completely

Hi:
I want set a loading status window for a page,when the page was loaded completely,the status window will be hidden.But i didn’t know how to catch the event.
From your previous article,you mentioned using “dhx.extend($$(‘grid’), dhx.ui.overlay);”.
Can you give me a sample about how to use it.

Do you mean normal html loading event ?
You can use

dhx.ready(function(){
…do some…
});

If you mean separate components, ones which have ajax loading functionality will fire onXLE event, after data loading end