On Dec 2, 8:00 am, Qiushuang Zhang <[email protected]> wrote:
> haha, that is an interesting saying
> But don't you guys feel that GWT apps are very slow in loading?
> I suspect it is because there are tons of unnecessary tables...

...only if you use those CellPanel-derived widgets. You're free to use
FlowPanel if you like (that's what we've been doing for nearly 2 years
now); but using a few HorizontalPanel shouldn't slow the app
noticeably (as we're doing too in some cases).

But regarding performances in loading, it all depends on what *you* do
onModuleLoad. Are you can build your layout all-in-one-go or
incrementally? (build the top-level container with "loading..."
placeholders, then in a DeferredCommand, replace a "loading..."
placeholder with a newly constructed widget, which might itself be
built incrementally using the same method) Are you constructing hidden
widgets or do you lazily initialize everything possible?

Have you profiled your app to know where the bottleneck is? (compile
in -style PRETTY so function names are understandable, or use the -
compileReport if you use GWT 2.0, and then use a profiling tool, such
as FireBug, Safari's Web Inspector, Chrome's Developer Tools, IE8's
Developer Tools, or dynaTrace Ajax Edition for older IE versions)

--

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


Reply via email to