Alex Rivera | Logout

How to 'minify' JavaScript code, like jQuery is minified

Asked 2009-11-15T12:11:23.103
111

jQuery has two versions for download. One is Production (19 KB, minified and gzipped), and the other is Development (120 KB, uncompressed code).

Now the compact 19 KB version, if you download it, you will see is still a JavaScript executable code. How did they compactify it? And how can I 'minify' my code like that too?

Edit
Report

1 Answer

37

You could use one of the many available JavaScript minifiers.

answered 2009-11-15T12:12:50.823

Your Answer