flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik de Bruin <e...@ixsoftware.nl>
Subject Re: [ASJS] debugging output JS?
Date Tue, 29 Jan 2013 17:51:41 GMT
Excellent work Frank, I love seeing what your approach does. Clever
use of comment to

> The resulting release version (9.5 kb) is quite similar in size to the
> "goog" version (11.5 kb), although it has only been minified with
> I think this underpins my point that starting from standard JavaScript code
> respecting rules like "avoid accessing global variables", you can do
> without Google Closure Compiler's ADVANCED_OPTIMIZATIONS. But of course, we
> need a larger example before I'd dare to generalize this conclusion.

I agree that a larger example is better, we need to be able to compare
apples with apples. In my example I used the Closure Library for event
handling, a forward looking action designed to accomodate non-DOM
based events later on in development. To make my orange look more like
your apple, I removed that code and it's dependencies and re-wrote the
components to use DOM based event handling, like you did. When using
ADVANCED_OPTIMIZATIONS, this resulted in a single file of around 3kb.
This appears to be 3 times smaller than your output. I'm sure this
doesn't mean anything in the long run, don't get me wrong, but you're
right to not generalize your conclusion just yet ;-)


Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

View raw message