1. #21
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,569
    Vote Rating
    56
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    Yes, but

    <span style="Dr. Szell">Is It Safe?</span>

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

      0  

    Default

    and does it decompress fast (read: fast + low cpu usage) on a normal (read: non-development) machine?

    AFAIK, dean edward's packer at max js compression also results in max decompression time.

  3. #23
    Developer... jon.whitcraft's Avatar
    Join Date
    Mar 2007
    Posts
    391
    Vote Rating
    0
    jon.whitcraft is on a distinguished road

      0  

    Default

    I'm gonna stick with the yuicompressor and gzip file compression on the fly. It does want i need it to and i can sill make out some of the functions for quick debugging.
    Jon
    Lead Internal Application Engineer - SugarCRM
    h2ik.co

  4. #24
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default

    Quote Originally Posted by jon.whitcraft View Post
    I'm gonna stick with the yuicompressor and gzip file compression on the fly. It does want i need it to and i can sill make out some of the functions for quick debugging.
    agreed. i'm sticking with yuicompressor too.
    tried various combinations of ShrinkSafe + Packer before, but they pale in comparison to yuicompressor.

  5. #25
    Sencha Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,676
    Vote Rating
    8
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default

    ok, i run into problems with Dean Edwards 's Packer. Everything worked well: Layouts, dialogs, Accordion - but grid failed.
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  6. #26
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,569
    Vote Rating
    56
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    Dean Edwards' Packer mungs the semantics of the code in some situations.

    Check Julien Lecomte's blog entries about the yui compressor.

    It does seem like YAHOO is the best option.

  7. #27
    Sencha Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,676
    Vote Rating
    8
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default

    does mootools use Dean Edwards' Packer ? May be they only linked to it.
    I think YUI-compressor works best atm. Anyway i will inform Edwards, may be he fixes something.
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  8. #28
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default

    be careful when compressing with the latest yuicompressor-2.2.1.jar.

    one new feature was added
    Quote Originally Posted by http://www.julienlecomte.net/yuicompressor/
    YUI Compressor 2.2.1, 2007-09-25
    --------------------------------

    + Optimize quote escaping in JavaScript string literals by using the best quote
    character (' or " depending on the occurrence of this character in the string)
    which for some strange reason, turned this line in ext-all-debug.js
    Code:
    document.write("<s"+'cript id="ie-deferred-loader" defer="defer" src="/'+'/:"></s'+"cript>");
    into
    Code:
    document.write("<s"+"cript id="ie-deferred-loader" defer="defer" src="/"+"/:"></s"+"cript>");
    which killed the minified script.

    i've tried to inform the author of this. let's hope he replies soon.

  9. #29
    Sencha Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,676
    Vote Rating
    8
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default

    Does anybody have expierience with ESC ? A friend of mine does all his javascript with this compressor, see his page
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  10. #30
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default

    Quote Originally Posted by mystix View Post
    be careful when compressing with the latest yuicompressor-2.2.1.jar.

    one new feature was added


    which for some strange reason, turned this line in ext-all-debug.js
    Code:
    document.write("<s"+'cript id="ie-deferred-loader" defer="defer" src="/'+'/:"></s'+"cript>");
    into
    Code:
    document.write("<s"+"cript id="ie-deferred-loader" defer="defer" src="/"+"/:"></s"+"cript>");
    which killed the minified script.

    i've tried to inform the author of this. let's hope he replies soon.
    did some more testing.
    this works (i.e. yui-compressor-2.2.1 doesn't mess up when minifying ext-all-debug)

    Code:
    document.write("<s"+"cript id='ie-deferred-loader' defer='defer' src='/"+"/:'></s"+"cript>");
    but the minified version gets cleverly optimised to
    Code:
    document.write("<script id='ie-deferred-loader' defer='defer' src='//:'></script>");
    looks like the only way to preserve the original string is to do this
    Code:
    document.write(["<s",'cript id="ie-deferred-loader" defer="defer" src="/','/:"></s',"cript>"].join(""));
    @jack/brian, any thoughts?

    scratch all that.
    yuicompressor-2.2.2 is out.