[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-20 Thread leveille

Are you certain that you have enabled/loaded the deflate module on
your server?  Add a phpinfo() page (I'm assuming you are writing a PHP
app based on earlier comments)  and look for the section labeled
Loaded Modules.  In that section, look for mod_deflate as a loaded
module.

On Oct 19, 2:08 pm, Sridhar Kuppalli [EMAIL PROTECTED]
wrote:
 Hi Karl,

 Yes i am using apache.
 I have created a new .htaccess file with the below mentioned line and added
 to root directory of my site.
 It started giving 500 internal server error.

 Then i have replaced that with this content specified in this 
 url-http://nathanbowers.com/wp-content/uploads/2008/04/htaccess.txt

 Now my Performance Grade has been changed to C(76) !!! :-) which is really
 good, before it was D(60).
 Thanks for your help.

 But still my JS gzip is not happening. 
 :-(http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js== 55KB ==
 Response time is only 594.http://mysites/jsfolder/myjsfile.js== 17KB 
 ==Response time is 1327.

 Why such a huge huge difference?
 Yslow is clearly showing that myjsfile.js is not gziped.

 Thanks  Regards
 Sridhar K N

 On Sun, Oct 19, 2008 at 9:13 PM, Karl Swedberg [EMAIL PROTECTED]wrote:



  Sridhar,
  Are you using apache? Or are you using IIS?

  If apache, you can create a .htaccess file and add this line to it:

  AddOutputFilterByType DEFLATE text/javascript text/css
  application/javascript application/x-javascript

  If IIS, please take a look at the link I posted earlier.

 http://www.keylimetie.com/Blog/2008/5/20/How-to-enable-HTTP-Compressi...

  MorningZ, glad to hear that the instructions in that linked page worked for
  you!

  --Karl

  
  Karl Swedberg
 www.englishrules.com
 www.learningjquery.com

  On Oct 19, 2008, at 9:01 AM, Sridhar Kuppalli wrote:

  Thanks man,

  Its really a good one, my request time for jquery library has been reduced
  by 50%.
  In the similar way I have to do for other js files also. Is there any way
  to achive gziping?
  I cannot configure apache.

  Regards
  Sridhar K N

  On Sun, Oct 19, 2008 at 3:34 PM, poncz [EMAIL PROTECTED] wrote:

  You can use
 http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
  it is minified, gzip, and the load is not on your servers.
  It is a free google ajax service.

  Enjoy,

 --
 
 Thanks  Regards
 S Kuppalli N


[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-20 Thread Sridhar Kuppalli
Hi,

My php_info(); shows these things
_ENV[HTTP_ACCEPT_ENCODING] == gzip,deflate
HTTP_ACCEPT_ENCODING == gzip,deflate
_SERVER[HTTP_ACCEPT_ENCODING] == gzip,deflate

Now i am adding headers to js file by inlcuding it in my php file.
?php
  ob_start( 'ob_gzhandler' );
  echo join('',file('uitabs.js'));
  ob_end_flush();
?

Then i am including uitabs.php in my index.php file. Now gzip is happening.

Can we do it automatically this one?

Thanks  Regards
Sridhar K N

On Mon, Oct 20, 2008 at 6:55 PM, leveille [EMAIL PROTECTED] wrote:


 Are you certain that you have enabled/loaded the deflate module on
 your server?  Add a phpinfo() page (I'm assuming you are writing a PHP
 app based on earlier comments)  and look for the section labeled
 Loaded Modules.  In that section, look for mod_deflate as a loaded
 module.

 On Oct 19, 2:08 pm, Sridhar Kuppalli [EMAIL PROTECTED]
 wrote:
  Hi Karl,
 
  Yes i am using apache.
  I have created a new .htaccess file with the below mentioned line and
 added
  to root directory of my site.
  It started giving 500 internal server error.
 
  Then i have replaced that with this content specified in this url-
 http://nathanbowers.com/wp-content/uploads/2008/04/htaccess.txt
 
  Now my Performance Grade has been changed to C(76) !!! :-) which is
 really
  good, before it was D(60).
  Thanks for your help.
 
  But still my JS gzip is not happening. :-(
 http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js== 55KB
 ==
  Response time is only 594.http://mysites/jsfolder/myjsfile.js== 17KB
 ==Response time is 1327.
 
  Why such a huge huge difference?
  Yslow is clearly showing that myjsfile.js is not gziped.
 
  Thanks  Regards
  Sridhar K N
 
  On Sun, Oct 19, 2008 at 9:13 PM, Karl Swedberg [EMAIL PROTECTED]
 wrote:
 
 
 
   Sridhar,
   Are you using apache? Or are you using IIS?
 
   If apache, you can create a .htaccess file and add this line to it:
 
   AddOutputFilterByType DEFLATE text/javascript text/css
   application/javascript application/x-javascript
 
   If IIS, please take a look at the link I posted earlier.
 
  http://www.keylimetie.com/Blog/2008/5/20/How-to-enable-HTTP-Compressi.
 ..
 
   MorningZ, glad to hear that the instructions in that linked page worked
 for
   you!
 
   --Karl
 
   
   Karl Swedberg
  www.englishrules.com
  www.learningjquery.com
 
   On Oct 19, 2008, at 9:01 AM, Sridhar Kuppalli wrote:
 
   Thanks man,
 
   Its really a good one, my request time for jquery library has been
 reduced
   by 50%.
   In the similar way I have to do for other js files also. Is there any
 way
   to achive gziping?
   I cannot configure apache.
 
   Regards
   Sridhar K N
 
   On Sun, Oct 19, 2008 at 3:34 PM, poncz [EMAIL PROTECTED]
 wrote:
 
   You can use
  http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
   it is minified, gzip, and the load is not on your servers.
   It is a free google ajax service.
 
   Enjoy,
 
  --
  
  Thanks  Regards
  S Kuppalli N




-- 

Thanks  Regards
S Kuppalli N


[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-20 Thread leveille

Do you have a link so that we can take a closer look at the response
headers associated with file requests?

In the past on shared hosts I had to go the route of ob_start and
ob_end_flush.  This isn't terrible if you are using includes for your
header and footer.

At this point, assuming you have tried the above suggestions, it looks
like your options are narrow otherwise.  You might want to contact
tech support and ask about gzip support.  Good luck with that though.
Unless you get a tech. savvy support person this could be a waste of
your time.

On Oct 20, 1:38 pm, Sridhar Kuppalli [EMAIL PROTECTED]
wrote:
 Hi,

 My php_info(); shows these things
 _ENV[HTTP_ACCEPT_ENCODING] == gzip,deflate
 HTTP_ACCEPT_ENCODING == gzip,deflate
 _SERVER[HTTP_ACCEPT_ENCODING] == gzip,deflate

 Now i am adding headers to js file by inlcuding it in my php file.
 ?php
   ob_start( 'ob_gzhandler' );
   echo join('',file('uitabs.js'));
   ob_end_flush();
 ?

 Then i am including uitabs.php in my index.php file. Now gzip is happening.

 Can we do it automatically this one?

 Thanks  Regards
 Sridhar K N



 On Mon, Oct 20, 2008 at 6:55 PM, leveille [EMAIL PROTECTED] wrote:

  Are you certain that you have enabled/loaded the deflate module on
  your server?  Add a phpinfo() page (I'm assuming you are writing a PHP
  app based on earlier comments)  and look for the section labeled
  Loaded Modules.  In that section, look for mod_deflate as a loaded
  module.

  On Oct 19, 2:08 pm, Sridhar Kuppalli [EMAIL PROTECTED]
  wrote:
   Hi Karl,

   Yes i am using apache.
   I have created a new .htaccess file with the below mentioned line and
  added
   to root directory of my site.
   It started giving 500 internal server error.

   Then i have replaced that with this content specified in this url-
 http://nathanbowers.com/wp-content/uploads/2008/04/htaccess.txt

   Now my Performance Grade has been changed to C(76) !!! :-) which is
  really
   good, before it was D(60).
   Thanks for your help.

   But still my JS gzip is not happening. :-(
 http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js== 55KB
  ==
   Response time is only 594.http://mysites/jsfolder/myjsfile.js== 17KB
  ==Response time is 1327.

   Why such a huge huge difference?
   Yslow is clearly showing that myjsfile.js is not gziped.

   Thanks  Regards
   Sridhar K N

   On Sun, Oct 19, 2008 at 9:13 PM, Karl Swedberg [EMAIL PROTECTED]
  wrote:

Sridhar,
Are you using apache? Or are you using IIS?

If apache, you can create a .htaccess file and add this line to it:

AddOutputFilterByType DEFLATE text/javascript text/css
application/javascript application/x-javascript

If IIS, please take a look at the link I posted earlier.

   http://www.keylimetie.com/Blog/2008/5/20/How-to-enable-HTTP-Compressi.
  ..

MorningZ, glad to hear that the instructions in that linked page worked
  for
you!

--Karl


Karl Swedberg
   www.englishrules.com
   www.learningjquery.com

On Oct 19, 2008, at 9:01 AM, Sridhar Kuppalli wrote:

Thanks man,

Its really a good one, my request time for jquery library has been
  reduced
by 50%.
In the similar way I have to do for other js files also. Is there any
  way
to achive gziping?
I cannot configure apache.

Regards
Sridhar K N

On Sun, Oct 19, 2008 at 3:34 PM, poncz [EMAIL PROTECTED]
  wrote:

You can use
   http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
it is minified, gzip, and the load is not on your servers.
It is a free google ajax service.

Enjoy,

   --
   
   Thanks  Regards
   S Kuppalli N

 --
 
 Thanks  Regards
 S Kuppalli N


[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-19 Thread Sridhar Kuppalli
In those sites they have mentioned to set some variables in apache. How do
that. can my cpanel have that option?

On Sun, Oct 19, 2008 at 2:17 AM, Sam Sherlock [EMAIL PROTECTED]wrote:

 search for mod_deflate on google

 I use jsMin and cssTidy, others prefer other options



 2008/10/18 Sridhar Kuppalli [EMAIL PROTECTED]

 Hi All,

 I am a PHP programmer.
 I dont have access to the htdocs or apache of my web hosting.

 *Can we gzip JS and CSS fiels?
 How to do it ?
 Can we do it PHP?*

 I am using windows OS. What i can see in the blogs are they are telling
 some unix commands to gzip.
 Is there any other way to do it on Windows Os?

 Is there any link which says = do these steps to gzip your js files.



 --
 Thanks  Regards
 Sridhar K N
 [EMAIL PROTECTED]





-- 

Thanks  Regards
S Kuppalli N


[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-19 Thread poncz

You can use http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
it is minified, gzip, and the load is not on your servers.
It is a free google ajax service.

Enjoy,


[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-19 Thread Sridhar Kuppalli
Thanks man,

Its really a good one, my request time for jquery library has been reduced
by 50%.
In the similar way I have to do for other js files also. Is there any way to
achive gziping?
I cannot configure apache.


Regards
Sridhar K N

On Sun, Oct 19, 2008 at 3:34 PM, poncz [EMAIL PROTECTED] wrote:


 You can use
 http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
 it is minified, gzip, and the load is not on your servers.
 It is a free google ajax service.

 Enjoy,



[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-19 Thread Karl Swedberg

Sridhar,

Are you using apache? Or are you using IIS?

If apache, you can create a .htaccess file and add this line to it:

AddOutputFilterByType DEFLATE text/javascript text/css application/ 
javascript application/x-javascript


If IIS, please take a look at the link I posted earlier.

http://www.keylimetie.com/Blog/2008/5/20/How-to-enable-HTTP-Compression-on-Windows-Server-2003/

MorningZ, glad to hear that the instructions in that linked page  
worked for you!




--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Oct 19, 2008, at 9:01 AM, Sridhar Kuppalli wrote:


Thanks man,

Its really a good one, my request time for jquery library has been  
reduced by 50%.
In the similar way I have to do for other js files also. Is there  
any way to achive gziping?

I cannot configure apache.


Regards
Sridhar K N

On Sun, Oct 19, 2008 at 3:34 PM, poncz [EMAIL PROTECTED]  
wrote:


You can use http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
it is minified, gzip, and the load is not on your servers.
It is a free google ajax service.

Enjoy,







[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-19 Thread Rodrigo Paiva

You can gzip the response on the fly. You can use ob_* functions and
gzcompress() to send the content gzipped.


On Oct 19, 11:01 am, Sridhar Kuppalli [EMAIL PROTECTED]
wrote:
 Thanks man,

 Its really a good one, my request time for jquery library has been reduced
 by 50%.
 In the similar way I have to do for other js files also. Is there any way to
 achive gziping?
 I cannot configure apache.

 Regards
 Sridhar K N

 On Sun, Oct 19, 2008 at 3:34 PM, poncz [EMAIL PROTECTED] wrote:

  You can use
 http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
  it is minified, gzip, and the load is not on your servers.
  It is a free google ajax service.

  Enjoy,


[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-19 Thread Angel Marquez
http://www.ee.surrey.ac.uk/Teaching/Unix/unix6.html
download cygwin.
http://www.cygwin.com/



On Sat, Oct 18, 2008 at 11:42 AM, Sridhar Kuppalli 
[EMAIL PROTECTED] wrote:

 Hi All,

 I am a PHP programmer.
 I dont have access to the htdocs or apache of my web hosting.

 *Can we gzip JS and CSS fiels?
 How to do it ?
 Can we do it PHP?*

 I am using windows OS. What i can see in the blogs are they are telling
 some unix commands to gzip.
 Is there any other way to do it on Windows Os?

 Is there any link which says = do these steps to gzip your js files.



 --
 Thanks  Regards
 Sridhar K N
 [EMAIL PROTECTED]




[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-19 Thread ricardobeat

Probably your server is not setting the headers for JS files.

Try adding this to your .htaccess, right after SetOutputFilter
DEFLATE, this way you'll be asking for compression in two ways, if
this doesn't work you should contact your hosting company:

AddOutputFilter DEFLATE css js
AddType text/javascript .js
AddType text/css .css

- ricardo

On Oct 19, 4:08 pm, Sridhar Kuppalli [EMAIL PROTECTED]
wrote:
 Hi Karl,

 Yes i am using apache.
 I have created a new .htaccess file with the below mentioned line and added
 to root directory of my site.
 It started giving 500 internal server error.

 Then i have replaced that with this content specified in this 
 url-http://nathanbowers.com/wp-content/uploads/2008/04/htaccess.txt

 Now my Performance Grade has been changed to C(76) !!! :-) which is really
 good, before it was D(60).
 Thanks for your help.

 But still my JS gzip is not happening. 
 :-(http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js== 55KB ==
 Response time is only 594.http://mysites/jsfolder/myjsfile.js== 17KB 
 ==Response time is 1327.

 Why such a huge huge difference?
 Yslow is clearly showing that myjsfile.js is not gziped.

 Thanks  Regards
 Sridhar K N

 On Sun, Oct 19, 2008 at 9:13 PM, Karl Swedberg [EMAIL PROTECTED]wrote:



  Sridhar,
  Are you using apache? Or are you using IIS?

  If apache, you can create a .htaccess file and add this line to it:

  AddOutputFilterByType DEFLATE text/javascript text/css
  application/javascript application/x-javascript

  If IIS, please take a look at the link I posted earlier.

 http://www.keylimetie.com/Blog/2008/5/20/How-to-enable-HTTP-Compressi...

  MorningZ, glad to hear that the instructions in that linked page worked for
  you!

  --Karl

  
  Karl Swedberg
 www.englishrules.com
 www.learningjquery.com

  On Oct 19, 2008, at 9:01 AM, Sridhar Kuppalli wrote:

  Thanks man,

  Its really a good one, my request time for jquery library has been reduced
  by 50%.
  In the similar way I have to do for other js files also. Is there any way
  to achive gziping?
  I cannot configure apache.

  Regards
  Sridhar K N

  On Sun, Oct 19, 2008 at 3:34 PM, poncz [EMAIL PROTECTED] wrote:

  You can use
 http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
  it is minified, gzip, and the load is not on your servers.
  It is a free google ajax service.

  Enjoy,

 --
 
 Thanks  Regards
 S Kuppalli N


[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-18 Thread Sam Sherlock
search for mod_deflate on google

I use jsMin and cssTidy, others prefer other options



2008/10/18 Sridhar Kuppalli [EMAIL PROTECTED]

 Hi All,

 I am a PHP programmer.
 I dont have access to the htdocs or apache of my web hosting.

 *Can we gzip JS and CSS fiels?
 How to do it ?
 Can we do it PHP?*

 I am using windows OS. What i can see in the blogs are they are telling
 some unix commands to gzip.
 Is there any other way to do it on Windows Os?

 Is there any link which says = do these steps to gzip your js files.



 --
 Thanks  Regards
 Sridhar K N
 [EMAIL PROTECTED]




[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-18 Thread Karl Swedberg
Since it sounds like Sridhar is using a Windows server, he might need  
to use compression in IIS rather than apache's mod_deflate.


Here is an article I found via google:

http://www.keylimetie.com/Blog/2008/5/20/How-to-enable-HTTP-Compression-on-Windows-Server-2003/

Seems pretty straightforward, though I've never tried it.

--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Oct 18, 2008, at 4:47 PM, Sam Sherlock wrote:


search for mod_deflate on google

I use jsMin and cssTidy, others prefer other options



2008/10/18 Sridhar Kuppalli [EMAIL PROTECTED]
Hi All,

I am a PHP programmer.
I dont have access to the htdocs or apache of my web hosting.

Can we gzip JS and CSS fiels?
How to do it ?
Can we do it PHP?

I am using windows OS. What i can see in the blogs are they are  
telling some unix commands to gzip.

Is there any other way to do it on Windows Os?

Is there any link which says = do these steps to gzip your js files.


--
Thanks  Regards
Sridhar K N
[EMAIL PROTECTED]






[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-18 Thread MorningZ

Nice find Karl!!  Works great

I finally see the magic 16kb number for the 1.2.6 jQuery library from
my server/site


On Oct 18, 5:50 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 Since it sounds like Sridhar is using a Windows server, he might need  
 to use compression in IIS rather than apache's mod_deflate.

 Here is an article I found via google:

 http://www.keylimetie.com/Blog/2008/5/20/How-to-enable-HTTP-Compressi...

 Seems pretty straightforward, though I've never tried it.

 --Karl

 
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Oct 18, 2008, at 4:47 PM, Sam Sherlock wrote:

  search for mod_deflate on google

  I use jsMin and cssTidy, others prefer other options

  2008/10/18 Sridhar Kuppalli [EMAIL PROTECTED]
  Hi All,

  I am a PHP programmer.
  I dont have access to the htdocs or apache of my web hosting.

  Can we gzip JS and CSS fiels?
  How to do it ?
  Can we do it PHP?

  I am using windows OS. What i can see in the blogs are they are  
  telling some unix commands to gzip.
  Is there any other way to do it on Windows Os?

  Is there any link which says = do these steps to gzip your js files.

  --
  Thanks  Regards
  Sridhar K N
  [EMAIL PROTECTED]