I tend to use the following via an Ant build script:

1. Closure Compiler (Simple Optimisations) found this to have slightly
better compression than YUI also has a Firefox plugin that can unmap
the compiled code for debugging
2. YUI Compressor (CSS Minification)
3. CSSEmbed (DataURIs and MHTML for IE)
4. and a tweaked version of the FileTransform Ant Task
http://www.julienlecomte.net/blog/2007/09/16/

These tools (along with Ant) give me the ability to output an app with
the minimum number of http requests (optionally inlining javascript
and css), all static resources have far future expires and all
resources are served with http compression enabled where appropriate.

I'm also looking at using something like LESS (for CSS) which will
give me most/more of what GWTs CSSResource gives me (I also use GWT in
my day job primarily because I work for a software development company
consisting mostly of Java devs).

The only thing I don't have is automagic sprite creation but I reckon
it's possible using SpriteMe or a similar service - I tend to hand
create sprite images that make sense e.g. icon-up, icon-over, icon-
down, icon-disabled.

Using the above on a web app I recently updated resulted in an app
with an intial download of 4 http requests totalling 30k then
subsequest requests of about 2k. Build takes about 16 seconds.

I know that if this were converted to a GWT app initial download would
be at least 10 times this (one app coming to the end of its
development is 800k (2MB uncompressed) of html, css and js - build
takes about 10mins).

The thing I like about GWT/java development is actually the code
completion and refactoring features of the eclipse IDE - I wish there
was something out there for JS development that did this e.g.

I want to be able to write:

(function(global){

   var Widget = (function (){
       var localVar = 1;

        return {
             doThis: function() {
                   ++localVar;
            }
        }

    }());

    global.Widget = Widget;

}(this));


...and have the IDE auto compete for me and be able to define a new
function on that object from another file, then refactor it etc,
etc... maybe this exists but I've not found it.

Cheers,
Dave

On Mar 6, 8:11 pm, James Morrin <[email protected]> wrote:
> The data urls have turned up in the latest releases of GWT also. I am not
> advocating GWT, honestly I dont enjoy developing with it. But it does have a
> lot of great ideas.

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to