How to speed up your site with GZIP

Status
Not open for further replies.

cgworld

Active Member
566
2010
9
0
Hello guyz
I would like to give some tips about this little evil.

Advantages :
- Consume less server BW
- Increase page load time, which is what we want since now its an important factor for search engines .

so how does it work ? :
if i visit http://wjunction.com/index.php

my browser : hi elj i need index.php
web server : give me a second to find it.
web server : oh i found it, i am sending it now
my browser : wtf ? 100 kb?.. fuck loading loading ... okay i got it !!

as you see in this example the page is 100 kb and the browser needs time to load the page.

Here is where gzip comes in.
Imagine index.php was a zip archive and you were sending it to someone ... you all know that you will reduce the size of the file :D

see this now :

my browser : can i have config.php? but if you have the zipped version then send that one .
web server : ok let me find it ... found it, you said you want the zipped one ? sending it now ..
my browser : only 10 kb ? thats so nice thanks man i got it, displaying now !

actually when you visit a site, your browser asks for the zipped one too, and if the site supports gzip it will give it to you otherwise it will load normaly .

If you want to enable this module on apache :

PHP:
<ifModule mod_deflate.c>
  <filesMatch "\.(css|js|x?html?|php)$">
    SetOutputFilter DEFLATE
  </filesMatch>
</ifModule>
with this you will gzip all css js html xhtml php... files .

And finally this tool to check if its enabled on your site :
Code:
http://www.gidnetwork.com/tools/gzip-test.php
 
20 comments
using it from long time also you need to have enabled mod_deflate in you hosting

f87ab6.png
 
so, let me ask something. I just have to zip the web files (css js html xhtml php) with winzip, and then upload them?

Of course, after doing that, I need to activate the module.
 
no response :( , please answer, I want to use this tip, but I don´t know how

so, let me ask something. I just have to zip the web files (css js html xhtml php) with winzip, and then upload them?

Of course, after doing that, I need to activate the module.
 
GZIPping your content is only one way of speeding up your site's load time. There's many more(and better) ways to speed up your site's load time. Having multiple external CSS or JavaScript files is one main culprit of load times. Images, numerous HTTP requests, onLoad JavaScript functions are all common but unaddressed issues for most sites.
 
I have just making a site with dle but I test that GZIP is not enable and my site loading slow. Please can any one tell me how to enable GZIP compressor.
 
Code:
Results for: http://www.justpits.com
Web page compressed?	Yes
Compression type?	gzip
Size, Markup (bytes)	50,577
Size, Compressed (bytes)	9,218
Compression %	81.8
 
Status
Not open for further replies.
Back
Top