gzip compresion on js files

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2007, 06:58 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 168
Noticed this in the admin config panel.

What does this option do?

Thx
Reply With Quote
  #2 (permalink)  
Old 05-12-2007, 02:09 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
instead of using this - try using the htaccess method - that always helps me - my sites only load 50k of JS files instead of 120k+
Reply With Quote
  #3 (permalink)  
Old 05-12-2007, 10:03 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 168
Can you post a link to the 'htaccess method' article please?

Thx
Reply With Quote
  #4 (permalink)  
Old 05-12-2007, 11:47 AM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Open your .htaccess file and read the instructions at the top of it.
Reply With Quote
  #5 (permalink)  
Old 05-12-2007, 07:20 PM
New Pligger
 
Join Date: May 2007
Posts: 12
remember if you are using a hosting system that has php suexec to use a php.ini for your php values such as the gzip values in the htaccess..


also try using a site like
http://www.websiteoptimization.com/services/analyze/

to test it without gzip
and then with it on

you should see quite a difference in load times!

hope it helps a bit
Reply With Quote
  #6 (permalink)  
Old 05-12-2007, 10:01 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 168
Read the htaccess file

So, I guess the sequence of steps are -

1) Enable option in admin panel
2) Change lines in htaccess

Do I have to rename the file to .htaccess after or can I leave it at the default filename 'htaccess.default'?

Thx
Reply With Quote
  #7 (permalink)  
Old 05-12-2007, 10:33 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
The htaccess method is actually different then the method in admin > config. You can enabled the admin > config method which is the best but if that doesn't work you just have to follow the instructions in the htaccess to use the other method. make sure and rename your htaccess.default file to .htaccess
Reply With Quote
  #8 (permalink)  
Old 12-02-2007, 08:58 PM
New Pligger
Pligg Version: Pligg Beta 9.8.2
Pligg Template: Default
 
Join Date: Nov 2007
Posts: 4
This method seemed to help a bit with the loading times on my site.
Reply With Quote
  #9 (permalink)  
Old 07-18-2010, 06:21 AM
New Pligger
 
Join Date: Apr 2010
Posts: 3
## Gzip Begin ##
## To enable Gzip and decrease the load times of your Pligg site
## change /home/path/to to your absolute server path and remove the # from the lines below
# php_value auto_prepend_file /home/path/to/begin_gzip.php
# php_value auto_append_file /home/path/to/end_gzip.php
# AddType "text/javascript" .gz
# AddEncoding gzip .gz
# RewriteCond %{HTTP:Accept-encoding} gzip
# RewriteCond %{THE_REQUEST} ^(.*).js
# RewriteCond %{SCRIPT_FILENAME}.gz -f
# RewriteRule ^(.*)\.js $1.js.gz [L]
## Gzip End ##

This is all that .htaccess mentions. Can anyone help with an example ..to absolute server path?
Reply With Quote
  #10 (permalink)  
Old 07-18-2010, 02:16 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Quote:
Originally Posted by greatkanishka View Post

This is all that .htaccess mentions. Can anyone help with an example ..to absolute server path?
The absolute path will be different on every host. You should contact your hosts support for this information.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
gzip enabled, but not compressing .js files pxlpshr Questions and Comments 0 11-05-2008 06:33 PM
Gzip Technique That Boosted my load times Adaman Questions and Comments 21 02-28-2008 07:31 AM
gzip for n00bs tones Questions and Comments 0 08-09-2007 07:53 AM
Gzipping JS + CSS Files Simon Questions and Comments 7 01-11-2007 10:20 PM
.tpl files & smarty codes explained 3dKiller Questions and Comments 0 04-11-2006 02:52 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development