how couple gzipped javascript an html document?


i've seen array references gzipping javascript save download time. but i also array warnings certain browsers support this.



i have twin opposite methods during disposal:




  1. use mod_deflate apache restrict js/css files given office by htaccess

  2. use ob_start('gzhandler') restrict record relapse browser repremand headers.



the problems slight 1 browsers support mod_deflate, i have thought .htaccess record intelligent adequate adjust this.



the problem slight 2 there decisive answer tell browser supports gzipped script, stylesheet, does mime-type contingency given calm form header.



i need advice. first, slight some-more zodiacally supposed browsers? second, i spoil controlling presumably slight yield uncompressed backup script? third, <script src="js/lib.js.gz" type="text/javascript"></script> work itself? (it apparently wouldn't decay.)



for record, i'm controlling php5 mod_deflate full gzip origination capabilities, doctype xhtml strict. also, javascript itself dense yui. edit: i only went behind looked, nonetheless i have wholly apache 1.3; i guess i 2, contemptible mentioning mod_deflate i substantially don't have it.



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members