Loading Application indicator


My application requires a lot of processing to load. That’s why the com.vaadin.terminal.gwt.server.ApplicationServlet displays the “loading” GIF only after a couple of seconds after pointing the browser to the app URL.

How to cope this ? Overriding the writeAjaxPageHtmlMainDiv method is not a solution. I have also thought about introducing the app into a div, but I am not sure how to determine when the app is loaded in order to remove the loading icon.

Are there other better approaches ?