>it uses the Rhino JS parser which Firefox uses Well, that's not true at all. Firefox uses the C based Javascript implementation in the Mozilla source tree. Rhino is pure Java, and there are differences in how they behave, including breaking your code on occasion.
However, if you can get the Dojo compressor working on prototype/scriptaculous, all the merrier. Here are pointers to the Dojo Compressor toolkit itself, an OS/X app, and the online shrinksafe service: http://dojotoolkit.org/docs/compressor_system.html http://download.dojotoolkit.org/osxapp/shrinksafe/ http://alex.dojotoolkit.org/shrinksafe/ Let us know what you find! -San --- Chris Korhonen <[EMAIL PROTECTED]> wrote: > 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 > > > > ------------------------------ > > *From:* Andrew Kaspick [mailto:[EMAIL PROTECTED] > > *Sent:* Thursday, January 05, 2006 2:25 AM > > *To:* [EMAIL PROTECTED]; > rails-spinoffs@lists.rubyonrails.org > > *Subject:* Re: [Rails-spinoffs] Scriptaculous + > Prototype shrunk to < 50Kb > > > > 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". > > > > > > Download from my personal site at > www.alistercameron.com. > > > > > > - Alister > > > > > > PS. Of course this is the current version as > posted on the Scriptaculous > > > site. > > > > > > > > > *Alister Cameron* > > > Managing Director > > > > > > *Cameron Creative* > <http://www.cameroncreative.com/> > > > PO Box 4321 > > > > > > > <http://maps.google.com/maps?q=PO+Box+4321%2CBurwood+East%2CVIC+3151%2CAustralia&hl=en>Burwood > > > East, VIC 3151 > > > Australia > > > *Mobile:* 04 0404 5555 > > > *Fax:* 03 8610 0050 > > > *Email:* [EMAIL PROTECTED] > > > *IM:* alistercameron (Skype) > > > See who we know in common > <https://www.linkedin.com/e/wwk/2362425/> Want > > > a signature like this? > <https://www.linkedin.com/e/sig/2362425/> > > > > > > > > > _______________________________________________ > > > Rails-spinoffs mailing list > > > Rails-spinoffs@lists.rubyonrails.org > > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > > > > > > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > __________________________________________ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs