Initial download size

28 views
Skip to first unread message

Morteza Adi

unread,
Oct 27, 2011, 8:37:20 AM10/27/11
to google-we...@googlegroups.com
I'm using GXT/GWT in  a project.  with help of  code splitting i could reduce initial download size to 2232796 bytes.
However i think it is still too big for initial download.
after inspecting compile reports i found that there are some classes /packages in jre and gwtlang
like java.util.AbstractHashMap or java.lang.Math
i've never used them in my project. there are also some gwt / gxt classes i've never used but they got loaded in initial download.

i have some questions and i would be so thankful if anyone help me out.
is gwt compiler compiles every packages in jre or just compiles those which are implemented ??
i have just a simple login page which is split from rest of the code. how much the minimum initial download size do you expect i can reach(what is the normal download size for a simple project)?

thanks

Andrei

unread,
Oct 29, 2011, 10:38:27 AM10/29/11
to Google Web Toolkit
I built an app with 10 very complex views. Each view has a table with
data or a form, and a few popup dialogs. Plus, each view has several
paragraphs of text. There are 5 different services supporting these
views, and about 20 types of complex data entities. Total download
size: 550kB.

The biggest difference, I guess, is that I use pure GWT - no GXT.

Note that many packages that you see (like AbstractHashMap) are used
by GWT components themselves. This is why they are included. You can
trace each package to its source Ina compile report.

morteza adi

unread,
Oct 29, 2011, 2:45:37 PM10/29/11
to google-we...@googlegroups.com
Thanks Andrei

i did a lot of research on GXT before starting the project but never thought of problems like this !!
just a single GXT gridview without any implementation is more than 1mb !!!
fortunately i can easily migrate to GWT.
thanks again !!


Truly yours,
Morteza Adi



--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Reply all
Reply to author
Forward
0 new messages