9 Jun 2008 12:04 PM #1
I'm just trying to figure out GXT because we already use Ext 1 and 2 and I'm trying to start using GWT (I'm fully ready to start migrating our apps from Ext 2 because of the sheer size of the download, which is killing our response times over a smallish WAN connection) and I've been following GXT since very nearly the beginning, though I'm only now starting to use it in a real-world application.
I'm a little confused on why the ext-all.css file isn't included by either the main GXT module itself, or the Theme module. Is it really the case that, besides including an 'inheirit' in my module XML, I also need to include a stylesheet reference to "css/ext-all.css"? Or am I missing something?
Along those same lines, is there any way I can tell the generators to SKIP copying the css and images folders? I'm going to have quite a number of modules that use GXT and I certainly don't want 2.5MB of duplicate images strewn throughout my SVN tree (GWT duplicates enough stuff as it is). I'll keep a single copy of the images folder as a peer to my module folders and include a stylesheet that imports the base Ext CSS from there.
BTW- Is file size the reason GXT isn't using ImageBundles? Would the resulting bundle be too big? Or is there another reason?Thanks!
NPC International, Inc.
9 Jun 2008 6:32 PM #2I'm a little confused on why the ext-all.css file isn't included by either the main GXT module itself, or the Theme module.
1. It forced users to have the stylesheets in the root directory of their module. As you mentioned in your post, many prefer to have a single location for styles and images, independent of the module. By removing the styles from the module, you are free to put the stylesheets and images anywhere you choose.
You should only have to include ext-all.css in your html. The theme styles will be loaded on demand. Take a look at the explorer demo and you will see that it only includes ext-all.css. You must import the themes module if you use any custom themes (Slate).
Along those same lines, is there any way I can tell the generators to SKIP copying the css and images folders?
ImageBundle support has been considered and may be added (it was planned for 1.0 but there are some issues that need investigation) at some time. It seems that the format is very rigid and would be difficult to support things like 3-state icons and themes. Many developers have asked for ImageBundle support, but I have yet to see anyone actually using them. If you are, I would love to hear from you.
21 Sep 2008 2:09 AM #3
I would have love to use ImageBundle in the app I'm creating right now. The point is I have many images in the app (the homepage alone has up to 30 individual images) so an ImageBundle would mean a single HTTP request instead of 30. It would be a great thing to have in GXT.
13 Dec 2009 5:31 PM #4
Can I do away with a part of gxt-all.css?
As everyone's already aware, gxt-all.css is too big a stylesheet, and causes a bit of a performance hit at times. In my application I'm not using all the styles; so, I'd like to get rid of a few styles which aren't getting used anywhere in my application.
Is there any reliable way of doing that? Basically, my main objective is to make my application load quicker. Any other suggestions???