-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,146
  • 33
  • 97
  • 186

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,102
  • 1
  • 19
  • 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,356
  • 18
  • 76
  • 108
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
  • 160,885
  • 21
  • 326
  • 309