PHP scripts and htaccess, can be used to compress your site / blog in the gzip format. Way it works, the browser will open a compressed file and will extract them earlier after gzip downloaded. If your browser does not support gzip compression, the browser will automatically open the html homepage, not a gzip.
Actually I do not know a whole. Right now I have tried and succeeded in my browser. Not bad, can also be
compressed to 79%. To my friends who have problems in opening this blog, please immediately provide a response. Here's the script.
Actually I do not know a whole. Right now I have tried and succeeded in my browser. Not bad, can also be
compressed to 79%. To my friends who have problems in opening this blog, please immediately provide a response. Here's the script.
For htaccess
Open .htaccess And include this script
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
- the compressed files is text, html, xml, css, and js
For PHP
Open header website, or for wp open wp-content/themes/(*theme used)/header.php
Include this script above, outer of tag and above of tag.
Include this script above, outer of tag and above of tag.
No comments:
Post a Comment