Authorization

Compressing content on server before sending it over HTTP is a good practice since it saves a lot of traffic and makes transfers faster.
For example, Prototype.js is 123KB size and after Gzip compression it becomes only 28KB.
GZIP Compression also affects HTML so even primed cache requests that downloads mostly only HTML will be faster.
So we should enable server-side compression of textual components: Stylesheets, Javascript, HTML, XML (there is no need to compress images as they already compressed).
For Apache2:
compression done by mod_deflate
AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/x-javascript text/xml
For Lighttpd:
enable mod_compress in lighttpd.conf and add configuration directives:
compress.cache-dir = "/tmp/"
compress.filetype = ("text/plain", "text/html", "application/x-javascript", "text/css", "text/javascript", "text/xml")
Nginx configuration directives:
gzip on;
gzip_min_length 1000;
gzip_types text/html text/plain text/css text/javascript application/x-javascript text/xml;Besides compression there is minification (removing comments and unnecessary whitespaces) that can further reduce size of Javascript.
Minified Prototype.js becomes 92KB size uncompressed and 23KB compressed, this is 20% less than compressed non-minified script.
There are number of tools for minification exists, I’m using JSMin (http://crockford.com/javascript/jsmin).
Comments (173)
RSS Collapse / Expandjcbrown
gzip_min_length 1000;
gzip_types text/html text/plain text/css text/javascript application/x-javascript text/xml;
flashwd
fionasimkins
Melinda22
Melinda22
shanelee
Melinda22
flashwd
vijaysbhagat
Melinda22
izza301
septian354
inter4522
flashwd
Johnson
mivpl
Andrew123
flashwd
strobin
fabio36s
border76
giuseppe
sotirios3
alessioscarpi
rfederer3gx
Sameday Payday Lenders
Jennifer_William
chawla89
mikael0820
Ubuntu90
Loans Fast
jenniferwillson09
TomSmith
JohnsonSmith
kkbkjkj
sharadjha
Reliant Arena tickets
linkbulding
Digital Printing Australia
linkbulding
Sales Staff
linkbulding
Delta Dental Dentist
linkbulding
mikael0820
ERP Comparison
linkbulding
Right Parts Inventory
linkbulding
Quick Loans
Estella
nickadam
arieljshain
swindler
vijay123
sharadjha
sharadjha
Instant Payday Loans
superwork
freeipad2
healthy weight loss
joedavids
l?n
chawla89
vlad112
bredb?nd
chawla89
flooded basement
resma
rares45
McDonalds printable coupons
chawla89
Easy and instant cash loans
jennypaul123
Denver roofers
resma
darksam007
ottawa roofing
arrow321
first aid kits, tegaderm & wound dressings
alanf
wooden curtain poles
chawla89
Banners
chawla89
athenaedward
free stuff
chawla89
Kim Kardashian Weight
chawla89
andi
andi
acaiberry
acaiberry
acaiberry
acaiberry
belladonna
vijaysbhagat
ellipticalguide
Please keep up this blog very helpful. weight loss programs
melcie
chawla89
samdark
chawla89
chawla89
joedavids
chawla89
chawla89
vijaysbhagat
chawla89
chawla89
chawla89
vender
chawla89
bapoc3
chawla89
chawla89
chawla89
Milon123G
superwork
aries6484
shea1234
chawla89
Keep up your work and guide us from browsing through a large amount of websites. It will save my time from searching too much site.
penny123
AvaJackson
keith101
Excellent posts to read keep it up and keep going on this way. And keep sharing these types of things Thanks for this awesome blog.
JessicaSmith
Melinda22
Melinda22
adit
Thanks for posting this article. I'm definitely tired of struggling to find relevant and intelligent comments on this topic. Everybody today seems to go to extremes to either drive home their views or suggest that anyone else in the world is wrong. Thank you for your accurate and relevant insights.
vibha123
TelefonsexCH
Channel6AcaiBerryDiet
Telefonerotik
GarminWatches
ComplaintLetter
keith101
TelefonsexFrauen
BodyToBodyMassage
krisrian
TelefonXXX
jessicamarchant123
TittenTelefonsex
krisrian011503
AngielskiWAnglii
samdark
louis342
sofortTelefonsex
korak645
frae1513
mandym
shaun12
roserichal
Only Registered and authorized users may post comments