Splitting code

47 views
Skip to first unread message

Jasper Suijker

unread,
May 3, 2021, 6:38:49 AM5/3/21
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 AM5/3/21
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