1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    10
    Vote Rating
    0
    Frodotus is on a distinguished road

      0  

    Default Javascript minimizer suggestions

    Javascript minimizer suggestions


    I would appreciate information about good javascript minimizer. I tried to google but there is lots of them and most of them are lacking development or windows only.

    Thanks,
    -Toni L.

  2. #2
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    the best thus far (also handles css minification):
    http://developer.yahoo.com/yui/compressor/

  3. #3
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

  4. #4
    Ext User
    Join Date
    Jul 2007
    Posts
    33
    Vote Rating
    0
    iamleppert is on a distinguished road

      0  

    Default


    I'm currently using the following tools for my build process:

    Javascript: tweaked perl version of http://dean.edwards.name/packer/
    Using high-ASCII compression, I can get ext-all.js and ext-base.js down to under 300k!

    CSS: csstidy (http://csstidy.sourceforge.net/) + yuicompressor (http://developer.yahoo.com/yui/compressor/)
    Csstidy optimizes such things as colors, borders, combines selectors etc. to reduce token count, then it is processed with YUI to remove comments and whitespace.

    Images: SmartSprites (http://smartsprites.osinski.name/)
    Easily allows you to create sprites without destruction of original CSS source. Great for making sprites out of CSS background-images. I'm going to investigate using it to reduce the number of images in ext themes.

    For allowing the tools to work together I am using Apache Ant as part of my build processes (some of the tools, like yui, smartsprites natively support Ant via custom tasks). Once you learn Ant, you will really appreciate its power and versatility. For example, I just added the ability to output Build numbers and information in my "compiled" source files in under 10 minutes.

    I am also preprocessing my files with m4, a general purpose text preprocessor (like cpp). This allows me to concatenate files appropriately (before sending them through the tool-chain), based upon statements in the file and can be switched to different build targets (such as debug, candidate, release, production, etc.). I tried using cpp at first but it doesn't work gracefully with CSS due to namespace conflicts in some directives.

    I got a lot of these ideas researching over the past month what other people are currently doing. In particular, Julien Lecomte's blog was the first inspiration. You should check it out for an overall process to get started, he has some nice Ant examples as well:

    http://www.julienlecomte.net/blog/2007/09/16/

    If anyone has any other ideas or tools I'd love to hear about them. I did take a look at http://www.rockstarapps.com/pmwiki/p...?n=JsLex.JsLex but ultimately needed something a little more flexible with the ability to swap out tools as needed, so I opted to create my own Ant "make" files. At this point the only thing that's missing from my setup is testing integration (jsunit) and documentation generation from source (ext doc generator?).

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi