Hi!
I need to create a web-application with the design like Facebook. So I
want to have a single gwt-module for the entire app and use "code
splitting" feature for dynamic loading of all needed pages. But there
is some problem:

>From main page(when the module is already loaded) a user can navigate
to any page of my app. The total amount of pages will be very
huge(Let's say 1000). If I use "code splitting" feature I must to
place the next code-fragment 1000 times in my module:
GWT.runAsync(new RunAsyncCallback() {
                                                @Override
                                                public void onSuccess() {
                                                        new 
SomePagelet().load();
                                                }

                                                @Override
                                                public void onFailure(Throwable 
reason) {
                                                }
                                        });
Thus my single module will be a large size and the loading time will
be very long as well. I want to find a way to say gwt what a pagelet
to download in runtime! Now I see an only possible solution: 1)analyze
compiled js scripts 2) then, extract the piece of the script that
handles loading of the exclusive fragment 3)On the server I add
extracted piece with specified pagelet-name to be downloaded to the
output html.

But this approach is hard. Does anybody have similar problems? Any
useful advices would be very appreciated!

-- 
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.

Reply via email to