Wednesday, January 14, 2009

Pack and minimize your JavaScript code size

In pursue for my JavaScript code performance and some questions on jQuery mailing list I looked for and eventually came across some of the JavaScript code packers. Here is a list of custom JavaScript code compressors available for free.

  1. YUI Compressor (from Yahoo)
  2. JSMin (by Douglas Crockford)
  3. ShrinkSafe  (from Dojo library)
  4. Packer (by Dean Edwards)

According to general opinion of developers on the net (and jQuery official site) you should use Yahoo's YUI Compressor to compress your jQuery and JavaScript code.

7 comments:

  1. Thanks a lot Good resource
    The YUI compressor works fine for me
    I've tried using packer but it is not working.

    ReplyDelete
  2. @Tiago Wüst Frères, glad it was useful :)

    ReplyDelete
  3. Try JavaScript Utility v2

    http://jsutility.pjoneil.net/

    ReplyDelete
  4. Great resource.

    Packer works a treat and .net too.
    Just what I was looking for.

    Thanks
    MC

    ReplyDelete
  5. Thanks a lot Good resource
    The packer compressor works fine for me
    I've tried using YUI but it is not working.

    ReplyDelete
  6. I tell you its not working, the packer, but the YUI you should try, it works for me just fine.

    ReplyDelete