Thursday, July 24, 2014

Re: Code splitting with dependency injection (gin)

I just found out that the problem of code splitting malfunctioning in my app was due to the use of RunAsyncCallback in my code (for other things than GWT.runAsync).


So I was wrong assuming it had to do with GIN.

best regards,

On Thursday, July 24, 2014 2:10:50 AM UTC+2, Robert Hoffmann wrote:
I am not clear how to enable code splitting, when using dependency injection.

At the beginning of my app I load a gin module to setup bindings, e.g. 

But by doing so I introduce a dependency to  WidgetViewImpl.class which prevents the code splitting.

I tried using AsyncProvider but the early dependency to the GinInjector remains and code splitting is also prevented.

How can I resolve this? Thank you

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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment