Splitting code

37 views
Skip to first unread message

Jasper Suijker

unread,
May 3, 2021, 6:38:49 AMMay 3
to google-we...@googlegroups.com
LS,

Looking at the size of our js files, they might/could or should be splitted.

Looking at the documentation, is it just adding a wrapper around the call?
GWT.runAsync(new RunAsyncCallback() { public void onFailure(Throwable caught) { <yourCall> } public void onSuccess() { <yourCall> } });


lofid...@gmail.com

unread,
May 3, 2021, 10:20:43 AMMay 3
to GWT Users
Yes, and you can analyse afterwards if you turn on "Report SoyC"

Check out hier in the presentation: https://bit.ly/gwtintropresentation
From page: 11

Hier is how to turn on if you are using TBroyer Maven plugin: https://github.com/lofidewanto/jsinterop-simple-example/blob/master/pom.xml

<compilerArgs> or <devmodeArgs> or <codeserverArgs>
...
    <arg>-compileReport</arg> 
...
</compilerArgs>

Hope this helps...
Reply all
Reply to author
Forward
0 new messages