OH YA!

I just remembered...  I was having other problems with IE due to the
compiler over-optimizing IE scripts...  One issue was with
ImageResource.getUrl()...  It's was an internal method used to create
resources, but if I didn't manually "touch" the method {calling it
once in an onModuleLoad even though I didn't need it}, my image srcs
turned to undefined.  Undefined can break a page.

Try recompiling in PRETTY or DETAILED to see if that helps.  It
triples file size, so don't use it for production code, but at least
it will tell you whether it's History or over-aggressive compiling.
If that does solve the issue, you'll have to search through obfuscated
code for undefined and try to trace variable names back to some kind
of recognizable string...  If you have to, start cutting out modules
and chunks to see what area of your java code is causing the freeze
up, and if it IS over-aggressive pruning, you can fix fields with a
public static void DoNothing(Object x); to make sure the compiler
remembers the field, and for methods, look for {return {null:null};}
or {return null;} in script, and if you can figure out where it comes
from, call it in your onModuleLoad.

Good code should be "barely referenced" so the compiler can optimize
it when you don't use it, but sometimes we get carried away and GWT
forgets that we actually DO reference it {multiple passes through JSNI
[Java->JS->Java->Js->Java sometimes get fudged}.

Also, static{ ... } blocks can sometimes get missed, use
onModuleLoad's instead.

On a final note, sometimes garbage collection with
Window.addClosingHandler() get's over-called on IE.  I've had pages
die because, like a good little boy, I delete all my text data and xml
pages when the page closes, but IE would delete them on history
events, and on rare occassions, call the garbage collection AFTER I
refresh the page.

Good luck!
--~--~---------~--~----~------------~-------~--~----~
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