How to show message during initial loading of gwt application? -
i want display message (please wait...) or animated gif before initial entire loading of gwt application.
can give me full example please.
thanks
because gwt app not yet loaded, have in pure html/css and/or js in html host page. easiest put in <body>
, when gwt app loads starts cleaning "loading" message (e.g. document.get().getelementbyid("loading").removefromparent()
)
another possibility use code-splitting: make first fragment that's small possible , display "loading" message, , load rest of app in background. in runasynccallback
, hide "loading" message.
that said, if feel need display such "loading" message, imo have bigger problem finding how display (and if struggle find how display one, you're in bad shape build app people enjoy using; fortunately, fixable: keep learning!).
Comments
Post a Comment