Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Greg
Hi I used GWT Lightweight Metrics in several of my projects. The progress looks real and gives some idea to a user how long he has to wait. More info here: http://www.gwtproject.org/doc/latest/DevGuideLightweightMetrics.html Basically you have to put static script before nocache.js file that r

Progress bar during GWT bootstrap process?

2015-10-27 Thread Thomas Broyer
Have you looked at code splitting to optimize initial load? -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To pos

Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Vassilis Virvilis
As I said check that the content you serve is compressed. One other idea that pops to mind is the browser's developer's tools net tab to make sure that the problem is indeed in the loading of resources. Maybe you can identify a problematic resource? Or that the problem is not in the GWT script? O

Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Ali Akhtar
I use cssresource, etc. With all the images, etc combined, the size can be pretty high. On Oct 27, 2015 11:15 PM, "Vassilis Virvilis" wrote: > That's weird,,, > > What is the size *.cache.js? > > Make sure your webserver/tomcat serves compressed content. > > > On Tue, Oct 27, 2015 at 8:11 PM, Ali

Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Vassilis Virvilis
That's weird,,, What is the size *.cache.js? Make sure your webserver/tomcat serves compressed content. On Tue, Oct 27, 2015 at 8:11 PM, Ali Akhtar wrote: > It can take up to 10 seconds on slow connections. May be even more on > mobile connections. > On Oct 27, 2015 11:07 PM, "Vassilis Virvil

Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Ali Akhtar
It can take up to 10 seconds on slow connections. May be even more on mobile connections. On Oct 27, 2015 11:07 PM, "Vassilis Virvilis" wrote: > Just to make sure we are on the same page. > > How much time does it take to load? > > This looks serious overkill to me... > > On Tue, Oct 27, 2015 at

Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Vassilis Virvilis
Just to make sure we are on the same page. How much time does it take to load? This looks serious overkill to me... On Tue, Oct 27, 2015 at 6:43 PM, Ali Akhtar wrote: > This is what I am doing currently. But its not the most user friendly. > > I'd like to show a progress bar which indicates ho

Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Jens
> This is what I am doing currently. But its not the most user friendly. > > I'd like to show a progress bar which indicates how much longer there is > to go. > > Worst case, I can override the Dom function for injecting a script, and > use that to request the scripts over websockets, and updat

Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Ali Akhtar
This is what I am doing currently. But its not the most user friendly. I'd like to show a progress bar which indicates how much longer there is to go. Worst case, I can override the Dom function for injecting a script, and use that to request the scripts over websockets, and update the progress w

Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Frank
Like Peter and Jens said, put a loading indicator in your host html page, and remove it in onModuleLoad. For example. Put in your html : Launching applicationPlease wait And then in your onModuleLoad RootPanel.getBodyElement().removeChild(DOM.getElementById("splash"

Re: Progress bar during GWT bootstrap process?

2015-10-26 Thread Jens
> But, I'm talking about the time from when the user visits the site, to the > time when the entrypoint's onModuleLoad is called. Often there can be a few > seconds of lag between nocache.js loading -> onModuleLoad being called. Is > there a way to show a progress bar during that period, e.g t

Re: Progress bar during GWT bootstrap process?

2015-10-26 Thread Ali Akhtar
But, I'm talking about the time from when the user visits the site, to the time when the entrypoint's onModuleLoad is called. Often there can be a few seconds of lag between nocache.js loading -> onModuleLoad being called. Is there a way to show a progress bar during that period, e.g to show the re

Re: Progress bar during GWT bootstrap process?

2015-10-26 Thread Peter Donald
The easiest way to do that is to just have the base page have a loading indicator and have the last action in your EntryPoint remove the loading indicator. If you want progress as loads occur then you can just update the progress level from each step in your EntryPoint. HTH On Tue, Oct 27, 2015 at

Progress bar during GWT bootstrap process?

2015-10-26 Thread Ali Akhtar
When GWT based sites are first loaded, the browser shows a loading indicator as nocache.js is downloaded. But then, when nocache.js inserts the actual scripts, there's no loading indicator, and the user is left staring at an idle screen. Not a very good experience. Is it possible to show a prog