yes you will get benefit because code splitting don't treat class monolitically so in your example the MyClass constructor code is downloaded only afrer runAsync and not before
On 13 Ago, 21:52, Joe Hudson <[email protected]> wrote: > Hi, > > I'm wondering if I still get the benefits from code splitting from the > example below: > > String className = MyClass.getName(); > ... > GWT.runAsync(new RunAsyncCallback() { > onSuccess() { > new MyClass(); > } > > onFailuare() { > ... > } > > }); > > Basically, I am wondering that since I referenced MyClass.getName() > prior to the GWT.runAsync, does that kill the benefits I would get > from code splitting if I am trying to load all of the code related to > MyClass asynchronously. Thanks. > > Joe -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
