views:

48

answers:

1

Hi,

For example, when I download Jquery, I see there is always 2 file: jquery.js and jquery-min.js.

How could they create jQuery-min.js -> in this file, it is not only compressed but also obfuscated. Which tool is best to do this?

I am working with Visual Studio 2010 Ultimate, would it be also possible as well?

Thanks in advance!

+2  A: 

You can use this: http://dean.edwards.name/packer/ pretty cool... and I believe jQuery is compressed using that. There are .NET, PHP and other versions HERE.

For Visual Studio I use this: http://yuicustomtool.codeplex.com/.

Checkout this too for CSS: http://www.csscompressor.com/

Cipi
@Cipi: Thanks a lot for your answer. I just have checked it out with .NET packer but after getting the script obfuscated. It does not work with my application...
JoesyXHN
.NET version I guess is little buggy, you can try the web version, and you must follow the rules for writing JavaScript in order for it to work. For example, because all the code is minified to be in one line, you must end each function with `;` and also use `;` at end of each line (so browser can tell where the statement ends). Try to have your code look like this: http://javascriptcompressor.com/content/CompressedExample.aspx
Cipi
yes, indeed, the web version is super!Thanks a lot!
JoesyXHN