Wednesday, July 24, 2013

Re: Switching between two screens take a long time

You're probably doing a lot of work all at once to display the page, so it takes awhile to show up. You can either try to move some of the logic to deferred calls so it can run after the screen update, or you can first switch in a loading page, and then show your screen. The browser tab will still 'stop' while it loads your screen though, because javascript will block the UI while it runs (so an animated loading bar won't animate). Best UI would be to try and make the javascript do less work so it can display fast / not block.

On Wednesday, July 24, 2013 12:10:46 PM UTC+2, kpedia wrote:
Hi everybody,

I'm a newbie with GWT. My problem is this :

I have a button in my home screen. When clicking on that button, I change the main panel and display others GWT elements into it. I don't make any RPC call.

It takes a long time when switching between two screens, so I want to make a wait indicator like an animated gif. I really try everything but it's notok.

How can I do that ?

Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment