http://gwt-code-reviews.appspot.com/13802/diff/1/3 File src/com/google/gwt/gen2/styleloader/client/StyleSheetLoader.java (right):
http://gwt-code-reviews.appspot.com/13802/diff/1/3#newcode37 Line 37: * {...@link StyleSheetLoader} creates a reference element on the page that will be Forgive the intrusion. I'm not sure what constraints you're working with, but why are you not better off loading the css through xhr and creating a style element in the head? The downsides are you can't do cross-domain loading of styles and that relative urls are resolved from a different base url. But given that you already have to encode something in the stylesheet (the reference style) the tradeoff seems similar. Also, watching for a particular element to be non-zero seems pretty fragile. A style like div { height: 400px; } would give you a false positive on loading. http://gwt-code-reviews.appspot.com/13802 --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---