I just recently decided to figure out how to gzip my own JS files.
This might not be the best method, but I...

   1. Renamed all the js files to be php instead.
   2. Changed the links in my html to point to php instead of html.
   3. At the top of each JS, I put <?php ob_start("ob_gzhandler"); ?>
   4. At the bottom of each JS, I put <?php ob_flush();?>

Viola!  All my JS files were significantly smaller. (check my site to see
evidence)

Regarding the underhanded thing.  I agree!  We should call the File Size
Police and have them throw John into the Hooskow!  Misleading the Public in
the Second Degree!  10 years in the clink!  Come on people!  Grab your
pitchforks!  We got ourselves an outlaw!  YeeeeeeeHaaaaaaa!!
There is a new sheriff in town, he don't take lightly to
gzip-packed-minified confusion!

Glen


On 9/14/07, Rey Bango <[EMAIL PROTECTED]> wrote:
>
>
> Hi Stephan,
>
> I think "underhanded" is a little harsh and I'm not sure John Resig, who
> is the one who put that up there, was attempting to do anything wrong.
>
> Also, we're not trying to be "marketing people" as you so incorrectly
> described the folks on this project. We're trying to provide the
> community with various options for using the jQuery library, especially
> in terms of performance and file size. That's why the link, which
> describes how to use gzipped files, was added next to the download.
>
> Considering how involved you are on the list and knowing how much effort
> everyone on the project puts into the jQuery, I'm a little disappointed
> that you would make such remarks.
>
> Rey...
> jQuery Project Team
>
> > This is correct. The webmaster/developers/whoever chose to be a bit
> > underhanded there and say it's 14k "with gzip", but fail to mention
> > that the user must arrange for the code to get gzipped. Shame on them.
> > They've metamorphed from programmers to marketing people.
>

Reply via email to