A JavaScript Compressor/Obfuscator
[url=http://dean.edwards.name/packer/]http://dean.edwards.name/packer/[/url]
None, numeric, normal and high ASCII encoding with or without special characters. Compresses up to 50-60% smaller.
[url=http://dean.edwards.name/packer/]http://dean.edwards.name/packer/[/url]
None, numeric, normal and high ASCII encoding with or without special characters. Compresses up to 50-60% smaller.
Yes. Dojo tries to talk people out of obfuscating. I assume to cut off the onslot of “How do I debug my Javascript?” questions.
I think compressing JS is retarded. Any web client post 1995 can accept gzipped content and any webserver can automatically gzip content to browsers that accept it. The only other reason people state for this is to keep others from using their code, which is doubly dumb. If somone could make a free copy of my house or car and use it somewhere else I wouldn’t be pissed off. Those things are a helluva lot more valuable to me than some JavaScript.
Oh and on DoJo.. Bleh. Extra fake tags in HTML sucks. Use jQuery.
It’s not a fact of obfuscating the Javascript so no one can steal it. It’s more of so when I put it in production, no one else here can go in and tweak it. I’ll send the source to anyone since anything on the web is technically free. I’m just trying to prevent people I work with from eventually and/or potentially fuckin’ up all my shit.
additional comment about dojo: I guess its fine if you use genuine XHTML, but who tf does that?
I haven’t looked into all the AJAX libs available. Dojo worked fine. I don’t use the widget library, so no non XHTML tags. Do you use jQuery a lot? If so, I might look at that and see if it has any advantages for my projects. Boofer, I realize you probably work with idiots like the rest of us, but I seriously doubt you can get away with trying to hide your code from your co-workers/company.
Yeah I use jQuery constantly. Its very simple, clean, chainable, and you only have to include parts that you are actually using.
Please be polite. You can use these HTML tags: STRONG, A, BLOCKQUOTE, CODE
Copyright © 2001–2012. All rights reserved.
RSS Feed. .
Is that better than http://dojotoolkit.org/docs/compressor_system.html ?