Tuesday, September 1, 2015

Re: Why code ends up in Left over Soyc report? How to analyze?



Am Dienstag, 1. September 2015 14:05:21 UTC+2 schrieb Ed:
BTW: you think it's possible to define different split points per app build?
Why? Declare and Ztoeslag build have both an initial download of about 400K, but in total the initial download is about 800K.
So I think in Total I would like to have less split points in Declare and Ztoeslag to reduce the initial download by making code exclusive to a split point.

I was thinking about using deferred binding to override the class that lazy load the components through runAsync and change the number of runAsync methods.

What do you think of this idea ?

Personally I probably wouldn't have created a Total app, if it doesn't do much on its own. Anyways, deferred binding will be gone in GWT 3.0 so if you want a bit more future proof then you should use dependency injection instead. If you use GWT 2.8 SNAPSHOT then you can also use System.getProperty("any-gwt-property") and define the property value on the command line in your build script. However note that System.getProperty("prop", "default") is not supported nor are Boolean.getProperty() and the like supported.

Of course you can also just use deferred binding for now, but you would need to revisit it when you want upgrading to 3.0 next year.

-- J.

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment