I've tried the Dojo compressor a while ago, and it didn't get it right. Any experiments are welcome, of course :)
-Thomas Am 05.01.2006 um 17:11 schrieb Chris Korhonen: I would recommend the Dojo compressor for um... compressing, it uses the Rhino JS parser which Firefox uses, so it 'understands' the code rather than just applying a few rules. This means no chance of breaking the code as a result of compressing.
The code is not in its most compressed form, and still could be compressed further after it is Dojo'd if you want more obfuscation, but you can usually reduce the footprint by 50%. Its quick, its easy, and risk free in terms of breaking things.
- Chris
On 1/4/06, Alister Cameron <[EMAIL PROTECTED]> wrote: My "contribution" was the hours of fiddling given that the "packing" process only works once all the missing semi-colons are put in. By this I mean that to all carriage returns are removed as part of the space-saving process. This breaks the existing code, unless a whole stack of semi-colons are laboriously found and put in. Dunno how to speed that up. It just takes going round and round in the packer script and the JS debugger to see where the next missing semi-colon is. Sure, I can see a lot of them, but many are very well hidden :) - Alister I was also thinking about packing the libs somehow as they are rather large. The unpacked versions for development are fine, but it'd be nice to just run a script in a production environment to pack the libs down each time an upgrade of the libs are performed. I see that packer is also available as a perl script so that would be useful to remove the manual process of making the packed version each time. Link to the perl script from here for anybody interested http://dean.edwards.name/download/#packer.
thanks
On 1/4/06, Alister Cameron < [EMAIL PROTECTED]> wrote: Maybe I'm anal but I like fat-free JS, so I pulled the Proptotype and core Scriptaculous files into one single JS file at 49Kb. It's "packed" so if you care about that kind of thing, it's also "obfuscated". - Alister PS. Of course this is the current version as posted on the Scriptaculous site. _______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
<cc_logo_small.gif> _______________________________________________ Rails-spinoffs mailing list |
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs