is there something like the jquerys .ready() function for GWT?
$(document).ready(function () {
alert("The DOM is now loaded and can be manipulated.");
});
I need a possibility to check when the site has been loaded completely and is now ready to use.
I know there is the way to do it like this:
FlowPanel mainPanel = new FlowPanel();
mainPanel.addAttachHandler(new AttachEvent.Handler() {
@Override
public void onAttachOrDetach(AttachEvent event) {
// do something
}
});
But im not sure, if this is really the same like jquerys .ready().
Does anyone know of something like .ready() in GWT?