Re: How to override module stylesheet definitions
As a heads up, if you build gwt-dnd from trunk (which requires using GWT 2.0 features form trunk) the stylesheet in injected via StyleInjector which avoids the extra HTTP round trip for gwt-dnd.css incurred by the stylesheet src=.../ configuration you mention below. Hope that helps. Fred On Mon, Aug 17, 2009 at 10:39 PM, Alex Epshteyn alexander.epsht...@gmail.com wrote: Surprisingly was unable to find any prior discussions about this... I'm optimizing my app's load time by merging all my stylesheets into a single CSS file (then minifying it with YUI compressor), to reduce the number of HTTP requests. I'd like to also concatenate all the stylesheets from third party libraries I'm using into this single CSS file, but don't see a way to undefine the stylesheet module XML elements in these third party modules. For example, I'm using Fred Sauer's gwt-dnd library, whose module XML contains stylesheet src=gwt-dnd.css/ This line instructs the browser to request gwt-dnd.css when this module is loaded, but I don't want this to happen. Any ideas? -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How to override module stylesheet definitions
Thanks Fred, I think the easiest solution is to wait for 2.0 On Mon, Aug 31, 2009 at 3:44 PM, Fred Sauerfre...@google.com wrote: As a heads up, if you build gwt-dnd from trunk (which requires using GWT 2.0 features form trunk) the stylesheet in injected via StyleInjector which avoids the extra HTTP round trip for gwt-dnd.css incurred by the stylesheet src=.../ configuration you mention below. Hope that helps. Fred On Mon, Aug 17, 2009 at 10:39 PM, Alex Epshteyn alexander.epsht...@gmail.com wrote: Surprisingly was unable to find any prior discussions about this... I'm optimizing my app's load time by merging all my stylesheets into a single CSS file (then minifying it with YUI compressor), to reduce the number of HTTP requests. I'd like to also concatenate all the stylesheets from third party libraries I'm using into this single CSS file, but don't see a way to undefine the stylesheet module XML elements in these third party modules. For example, I'm using Fred Sauer's gwt-dnd library, whose module XML contains stylesheet src=gwt-dnd.css/ This line instructs the browser to request gwt-dnd.css when this module is loaded, but I don't want this to happen. Any ideas? -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How to override module stylesheet definitions
On 18 août, 07:39, Alex Epshteyn alexander.epsht...@gmail.com wrote: Surprisingly was unable to find any prior discussions about this... I'm optimizing my app's load time by merging all my stylesheets into a single CSS file (then minifying it with YUI compressor), to reduce the number of HTTP requests. I'd like to also concatenate all the stylesheets from third party libraries I'm using into this single CSS file, but don't see a way to undefine the stylesheet module XML elements in these third party modules. For example, I'm using Fred Sauer's gwt-dnd library, whose module XML contains stylesheet src=gwt-dnd.css/ This line instructs the browser to request gwt-dnd.css when this module is loaded, but I don't want this to happen. Any ideas? Don't do it by hand, write a linker to be run before the primary linker (@LinkerOrder(Order.PRE)) that'll process all artifacts.find (StylesheetReference.class) and replace them with a single StylesheetReference while emitting the new single CSS file. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to override module stylesheet definitions
Surprisingly was unable to find any prior discussions about this... I'm optimizing my app's load time by merging all my stylesheets into a single CSS file (then minifying it with YUI compressor), to reduce the number of HTTP requests. I'd like to also concatenate all the stylesheets from third party libraries I'm using into this single CSS file, but don't see a way to undefine the stylesheet module XML elements in these third party modules. For example, I'm using Fred Sauer's gwt-dnd library, whose module XML contains stylesheet src=gwt-dnd.css/ This line instructs the browser to request gwt-dnd.css when this module is loaded, but I don't want this to happen. Any ideas? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---