flapjax.js file size

1 view
Skip to first unread message

therac25

unread,
Aug 26, 2009, 6:10:02 AM8/26/09
to Flapjax
Hello

flapjax.js seems to contains compiler related code.
I wonder, can this be removed by someone that only uses Flapjax as a
library in order to reduce the download size (around 55KB at the
moment) ?
If so, what lines exactly could be left out ?

Thanks

t25

Arjun Guha

unread,
Aug 28, 2009, 8:21:11 AM8/28/09
to fla...@googlegroups.com
The original source makes it clear:

http://github.com/arjunguha/flapjax/blob/47836420e1dcb0c88a4e330563a7939d2d721d53/fx/flapjax-impl.js#L2396

The Flapjax release is compiled--it it wrapped in a "module" that
hides internal functions. If you don't care about modularity, just
use flapjax-impl.js, and cut off the part that's marked for the
compiler. You'll also cut the module-wrapping code. (It's JavaScript,
so it's fake anyway.)

Arjun
Reply all
Reply to author
Forward
0 new messages