Nice answer, Thank you Ryan. I will do some refactor since i think its better dev into Modules than One BIG Module
What do you think about Modules in GWT, you desing your apps in Modules? 2011/6/30 Ryan McFall <mcfall.r...@gmail.com> > I am pretty sure that part of the optimization the compiler does is to > only include code in the generated .js file that is actually in use. > Therefore, only implementations of the methods in modules A & B that > are used by your Login module will be downloaded by the client. > > Ryan > > On Jun 30, 12:58 pm, Daniel Mauricio Patino León > <ceo.lion....@gmail.com> wrote: > > Since i read the FAQ and features of GWT and i dindt see info about > > this, can someone please tell me how the modules works? > > > > I mean if i dev a Module Login whit a few clasess (Fast download just > > a few kb's) > > then i dev a Module A w/ arround 40 clasess (huge kb's) > > then i dev a Module B w/ arround 40 clasess too > > > > then i put a inherent to A and B on my Login Module xml file > > the final ...XXX.cache.hmtl of my Login Module will load all > > the code from the A and B Modules? > > or it will load if i use them? when i say use, i mean create objects > > from that Modules > > ModuleAObject obj = new .... > > or just for import a class from a Module A or B my app will load all > > the js generated > > > > Can i work here whit code spliting ? i mean: > > > > GWT.runAsync(new RunAsyncCallback() { > > public void onFailure(Throwable caught) { > > Window.alert("Code download failed"); > > } > > > > public void onSuccess() { > > > > /* the code will be loaded async */ > > ModuleAObject obj = new ModuleAObject (); > > > > } > > }); > > > > Thank you. =) > > -- > 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-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- 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-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.