Code Splitting / GWT.runAsync (Web mode vs. Hosted Mode)

2011-10-13 Thread Salman Hemani
Hi, I am having some difficulty understanding why my code splitting functionality is not working as expected in web mode. I have a decent size application and I've managed to successfully create the split points. The process goes like this: 1. Load the application which takes you to the first

Re: Code Splitting / GWT.runAsync (Web mode vs. Hosted Mode)

2011-10-13 Thread Jens
The only difference between hosted and web mode is that in hosted mode GWT.runAsync() acts synchronously. A code like: void onLoginSuccessful() { doBeforeAppStart(); GWT.runAsync( // load app and start app in onSuccess() ) doAfterAppStart(); } will behave differently in hosted and web

Re: Code Splitting / GWT.runAsync (Web mode vs. Hosted Mode)

2011-10-13 Thread Kevin Jordan
Yeah, in hosted mode it just goes directly into the onSuccess callback whereas in web mode it has to download the piece of javascript needed for that point and so that requires it to do it asynchronously which means anything else inside your function where you call runAsync will be executed while

Re: Code Splitting / GWT.runAsync (Web mode vs. Hosted Mode)

2011-10-13 Thread Salman Hemani
Thanks guys, I am going to give that a shot tonight! On Oct 13, 2:59 pm, Kevin Jordan ke...@kjordan.net wrote: Yeah, in hosted mode it just goes directly into the onSuccess callback whereas in web mode it has to download the piece of javascript needed for that point and so that requires it to

Re: Code Splitting / GWT.runAsync (Web mode vs. Hosted Mode)

2011-10-13 Thread Salman Hemani
Just wanted to confirm and also let others who run into this issue in the future know, that based on your hints, I was able to resolve this issue. Thank you! On Oct 13, 5:05 pm, Salman Hemani salman.hem...@gmail.com wrote: Thanks guys, I am going to give that a shot tonight! On Oct 13, 2:59 

Re: Code Splitting / GWT.runAsync (Web mode vs. Hosted Mode)

2011-10-13 Thread Yurgis
I have a similar problem that I think started after upgrade to 2.4.0 Dev mode works fine, while web mode does not work sometime after some modifications are done in a part of the code being split. Making full clean build resolves the problem. So it might have to be related to persisted unit cache