-
28 May 2007 1:53 PM #11Sencha User
- Join Date
- Apr 2007
- Posts
- 65
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.
-
28 May 2007 2:00 PM #12
-
28 May 2007 2:35 PM #13Ext User
- Join Date
- Apr 2007
- Posts
- 2
you could take a look at how tinymce do it for asp.net
http://wiki.moxiecode.com/index.php/...ompressor/ASPX
-
28 May 2007 3:54 PM #14
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
-
31 May 2007 5:15 AM #15
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.
-
1 Jun 2007 5:50 PM #16
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
-
2 Jun 2007 12:49 AM #17
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.
-
22 Jun 2007 10:27 PM #18

Reply With Quote

