ArcBees / GWTP

A complete model-view-presenter framework to simplify your next GWT project.
Other
334 stars 132 forks source link

Support lazy loading for Code splitting #479

Open confile opened 10 years ago

confile commented 10 years ago

I am using GWTP Presenters with the @ProxyCodeSplit annotation as:

@ProxyCodeSplit public interface MyProxy extends Proxy { }

This works fine. Every Presenter is on its own split point. When I analyze the compiler report I found that the initial download size is about 2 MB which is super high. It turns out that The following packages are loaded at startup:

example.client.rest.dto
com.google.gwt.lang
java.util
java.lang

It seems that the rest dtos are loaded all at startup is there a way to determine that they will be loaded later on another split point only at the split point which uses them?

As Christian pointed out here: https://groups.google.com/forum/#!topic/gwt-platform/w-25yAJMrZo

This could be a good Idea for Support lazy loading for Code splitting

confile commented 10 years ago

Here is an overview of the Initial download package. You can see that the REST DTOs are a huge problem. They are designed like in the GWTP CarStore example

christiangoudreau commented 10 years ago

I think we could see how to improve that a little. Else Chris, please close the issue