-3

Possible Duplicate:
Searching a good Javascript Minifier.

I am working on several javascript files that I would like to minify, but not pack. What is the best minifier out there? Personally, I'd like to find one that:

  1. Is used by reliable JavaScript frameworks, such as jQuery.
  2. Doesn't keep your code. :)

Thank you for your time.

Community
  • 1
  • 1
Oliver Spryn
  • 16,871
  • 33
  • 101
  • 195

3 Answers3

2

I often use this "minifier:"

http://fmarcia.info/jsmin/test.html

It has levels of minification, and it's web based, so you don't have to install anything to use it.

peterp
  • 3,145
  • 1
  • 20
  • 24
1

This is the one I use. It is an exe you need to download.

http://www.crockford.com/javascript/jsmin.html

Hope it helps.

kheya
  • 7,546
  • 20
  • 77
  • 109
0

YUI Compressor is a commonly used tool: http://developer.yahoo.com/yui/compressor/.

That link gives you plenty of information about YUI, but for further information about it and other ways to improve loading times, see this article.

James Allardice
  • 164,175
  • 21
  • 332
  • 312