mootools and google closure compiler

48 views
Skip to first unread message

noiv

unread,
Nov 6, 2009, 1:31:33 PM11/6/09
to MooTools Users
mootools (core+more+clientcide) behaves quite nice with the javascript
optimizer at
http://closure-compiler.appspot.com/home

Only pattern like for (var i = 2; i--; i){} lead to ignorable
warnings. The compiler runs in the cloud on google's app engine
framework accepting POSTs using curl or local (http://closure-
compiler.googlecode.com/files/compiler-latest.zip) and fits perfectly
in a scripted, automated process.

I could reduce overall loading time and size by more than 30% with
simple optimisation. Still re-writing code for the advanced
optimisation, though.

Just for the early adapters.

--noiv

Aaron Newton

unread,
Nov 6, 2009, 1:43:22 PM11/6/09
to mootool...@googlegroups.com
yep. we've been discussing it in the dev group. it's interesting stuff.

samdev

unread,
Nov 6, 2009, 2:04:25 PM11/6/09
to mootool...@googlegroups.com
I dont see point in FOR third statement:

for (var i = 2; i--; i){}

I'd rather do:

for( var i = 2; --i; ) {...}

Jan Kassens

unread,
Nov 6, 2009, 5:52:16 PM11/6/09
to mootool...@googlegroups.com
Some problem was the reason for the statement at the end. I think it
was Dean Edward’s packer, but I cant really remember.


Jan

Reply all
Reply to author
Forward
0 new messages