Tuesday, October 4, 2011

Re: [SOLUTION] Re: Create custom callbacks to achieve synchronous code execution

You shouldn't use this solution. GWT.runAsync is used to create a code split point and not to execute things asynchronously. As far as I know these code split points act synchronously in dev mode but asynchronous in production/compiled mode. I think this is because in dev mode there are no .js files (each code split point will result in a separate .js file when you compile your app) that can be downloaded asynchronously using GWT.runAsync. So in dev mode GWT.runAsync gets somehow (synchronously) emulated.

Do you really want to code split these single methods?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PpX7pJT5U9YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment