gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.51k stars 372 forks source link

Optimizing code splitting left over #6611

Closed dankurka closed 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 6612

Please optimize the gwt code splitting left over fragment as it can become rather large
as GWT only uses one left over.

Currently this prevents me from merging 3 gwt app's to one gwt app's as the left over
fragment become to large such that the initial download is too big that results in
an unacceptable delay during the startup of the app.

See: 
+ https://groups.google.com/forum/#!msg/google-web-toolkit/VtEA4Ll4IKU/Pi6rPRBEl84J
+ http://blog.lexspoon.org/2009/09/exclusively-live-code.html?showComment=1254755092729#c2793919353038691570
http://www.mail-archive.com/google-web-toolkit-contributors@googlegroups.com/msg20334.html

Reported by post2edbras on 2011-07-24 12:08:24

dankurka commented 9 years ago
I'm having a similiar issue, the leftover is becoming too large. In my case, I have
some small runAsync calls that only run inside a  specific runAsyncCall1. I would like
these small ones to share a leftover code between them and runAsyncCall1, but not with
a runAsyncCall2 that occurs out of runAsyncCall1.

Reported by lucamattosmoller on 2011-08-26 14:29:22

dankurka commented 9 years ago

Reported by acleung@google.com on 2011-12-22 09:36:53

dankurka commented 9 years ago
Workaround (but not really):  Looking at initial load sequences https://developers.google.com/web-toolkit/doc/latest/DevGuideCodeSplitting#sequence
it looks like you can reduce/eliminate the left over code if your program has a single
flow of execution that covers the left over code.

One would imagine a single flow of execution would only occur on simple web sites,
which probably wouldn't need code splitting in the first place!

Reported by mail@craig-mitchell.com on 2012-03-26 05:31:31

dankurka commented 9 years ago
Big problem for me,it seems like my project can't be submitted before solving the problem.

Reported by Alexander.Luya on 2012-04-14 10:27:32

dankurka commented 9 years ago
I think this issue has to be updated as it has been realized in RC 2.5.

Reported by post2edbras on 2012-06-30 11:24:12

dankurka commented 9 years ago
Thanks for the heads up Ed.

Reported by t.broyer on 2012-06-30 13:15:36