code splitting question

28 views
Skip to first unread message

Dennis Haupt

unread,
Apr 5, 2012, 2:59:14 AM4/5/12
to google-we...@googlegroups.com
hi there,

my gwt app it getting pretty big, so i looked into code splitting - but it looks like magic to me in non trivial cases.
i have about 20 gwt modules, and all entry points implement an abstract entry point:

public void onModuleLoad() {
this.LOGGER.info("initializing module");
try {
initModule();
} catch (Throwable t) {
this.LOGGER.info("error while initializing module");
ErrorHandling.handleEverything(t);
}
}

if i put gwt.runasync around "initModule", will every module be compiled into its own js source file? if not, how can i achieve that? so i have to change every implementation of "initmodule"?

dodo dard

unread,
Apr 5, 2012, 5:30:43 AM4/5/12
to google-we...@googlegroups.com
Hello,

It depends on the dependency between your module. The best way to deal with code splitting is to start it. And than you can analyse each your code splitting combination. Google provide the tools to do that.

Sincerely
Bowie

==========
Reply all
Reply to author
Forward
0 new messages