1. #11
    Sencha User
    Join Date
    Apr 2007
    Posts
    65 Hani is on a distinguished road

    Default


    For Java users, there's http://www.galan.de/projects/packtag

    No hackery required, it'll reduce the size of ext-all-debug.js to around 100-120k (I point it at the debug version rather than ex-all.js since it runs jsmin as part of the process). The css shrinker has issues though so don't use that.

  2. #12

    Default


    is there some script to asp.net world?

    kind regards
    Frank

  3. #13

    Default


    you could take a look at how tinymce do it for asp.net

    http://wiki.moxiecode.com/index.php/...ompressor/ASPX

  4. #14

    Default


    Hi Serlo look good that, do you have some experience with TinyMCE Compressor and ext? I mean is work ok? any comment is welcome.

    kind regards
    Frank

  5. #15

    Default


    If you want to do this in PHP, and you have multiple JS/CSS files to include, I am using a modified version of this script:

    http://rakaz.nl/item/make_your_pages..._and_css_files

    The original script on the site has a bug which never sends the compressed content on IE6, and does not handle clients who use HTTP 1.0 instead of 1.1.

    If anyone is interested I can post my fixes here.

    But overall, it is a great solution, with combining, compressing, caching and all the bells and whistles. For example, combining the YUI adaptor libraries and ext-all results in one gzipped file of 138k.

  6. #16
    Ext JS - Development Team jack.slocum's Avatar
    Join Date
    Mar 2007
    Posts
    6,942 jack.slocum is on a distinguished road

    Default


    I use a .htaccess file that makes js and css files processed as PHP. Then I use an auto prepended file that starts an output buffer and an auto appended file that gzips it. Then I drop these in a parent directory and all js and css is automatically compressed. It's probably not the most efficient way, but it's easy and it doesn't seem to slow the server down.
    Jack Slocum
    Founder and original developer of Ext JS

  7. #17

    Default


    Quote Originally Posted by jack.slocum View Post
    I use a .htaccess file that makes js and css files processed as PHP. Then I use an auto prepended file that starts an output buffer and an auto appended file that gzips it. Then I drop these in a parent directory and all js and css is automatically compressed. It's probably not the most efficient way, but it's easy and it doesn't seem to slow the server down.
    Does your .htaccess file check if the client supports gzip compression? You wouldn't believe it, but I recently ran across a PC in our organization with IE 6 SP2 who was talking HTTP 1.0 (for whatever reason). I had to modify the aforementioned PHP script to combine the files without gzipping them if the client does not send the right headers.

  8. #18
    Ext User manugoel2003's Avatar
    Join Date
    Mar 2007
    Location
    New Delhi, India
    Posts
    314 manugoel2003 is on a distinguished road

    Default


    Quote Originally Posted by jack.slocum View Post
    I use a .htaccess file that makes js and css files processed as PHP. Then I use an auto prepended file that starts an output buffer and an auto appended file that gzips it. Then I drop these in a parent directory and all js and css is automatically compressed. It's probably not the most efficient way, but it's easy and it doesn't seem to slow the server down.
    Hey Jack, can you post ur solution here please. [Edit] both htaccess file and the gzipping script
    Manu Goel
    manugoel2003 [at] gmail [dot] com
    http://www.linkedin.com/in/manugoel