[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

[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. Then i am including uitabs.php in my index.php file. Now

[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

[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

[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

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

2008-10-19 Thread Sridhar Kuppalli
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

[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 si

[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://ww

[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

[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-18 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 S

[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 apach

[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

[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 w