Glen,
Be careful ob_gzhandler() doesn't always work the way you would want/
expect it to.  Reference the notes in the php.net docs to see what I'm
talking about.  Bottom line, if you want to have gzip handling you're
best doing it at the apache level.

Pax,
- Stan

On Oct 2, 5:28 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> Personally, I never understood where to put that script.
> I ended up doing it another way.
>
>    1. Rename the JavaScript files from .js to .php.  All of them. (And
>    reference them in my html with php, not js.)
>    2. At the top of each JS, I put <?php ob_start("ob_gzhandler"); ?>
>    3. At the bottom of each JS, I put <?php ob_flush();?>
>
> This is a little intrusive (alot) in that I have to rename the files. (Works
> for CSS too)
> There is supposedly a way to do this in .htaccess files, but my host wasn't
> doing the right thing.
>
> Glen
>
> On 10/2/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
>
>
> > There's a link to gzip instructions right next to the download link for
> > that
> > file.
>
> > -----Original Message-----
> > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of [EMAIL PROTECTED]
> > Sent: Tuesday, October 02, 2007 12:47 PM
> > To: jQuery (English)
> > Subject: [jQuery] Re: why is jquery-1.2.1.min.js 45.3KB and not 14KB
>
> > Mike, you can tell me please how can i verify if gzip is enabled?
> > Thanks!
>
> > On Oct 2, 3:49 pm, "Mike Chabot" <[EMAIL PROTECTED]> wrote:
> > > You are probably missing the gzip portion of it. You have to enable
> > > that feature on your Web server to gain the benefits.
>
> > > -Mike Chabot
>
> > > On 10/1/07, ghettoboy <[EMAIL PROTECTED]> wrote:
>
> > > > Why is the Minified and Gzipped version of 1.2.1 show up as 45.3 and
> > > > not 14KB. Am I missing something here???

Reply via email to