Whitespace and comment eliminators are good for minimizing file transfer sizes, but as a method to 'obfuscate' code they are not really effective as anyone can use a tool like http://www.polystyle.com to get easily readable code.

Jonathan

----- Original Message ----- From: "David H" <[EMAIL PROTECTED]>
To: "Jean-Marc Orliaguet" <[EMAIL PROTECTED]>
Cc: "zope user list" <zope@zope.org>; "Peter Bengtsson" <[EMAIL PROTECTED]>
Sent: Wednesday, January 04, 2006 2:28 PM
Subject: Re: [Zope] Javascript obfuscator and Zope


Jean-Marc Orliaguet wrote:

Peter Bengtsson wrote:

It's not a Zope product but at least it's python.
http://www.issuetrackerproduct.com/Download#slimmer

It's basically a javascript whitespace optimiser
Compare
http://real.issuetrackerproduct.com/tw-sack.js
with the original:
http://www.issuetrackerproduct.com/tw-sack.js

More work can be done of course but I wanted to keep it relatively CPU fast.
It works on CSS and HTML too:
http://www.peterbe.com/stylesheet.css



there is "minjs" written in C too: http://www.crockford.com/javascript/jsmin.html

this is a one-way process though, and this should also be compared with the effect of compressing files while serving them.

/JM

Thanks Peter and Jean-Marc!
I'll take a look at these.
David
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )



_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to