4 ms·
Nice UI. But I don't get what is the use of the .gz files. So my javascript files can be compressed -- but what are compressed .js.gz useful for? can I use the
by whathappenedto 15y ago
Nice UI. But I don't get what is the use of the .gz files. So my javascript files can be compressed -- but what are compressed .js.gz useful for? can I use them in place of the .js files or something?
- usaphp 15y agoHi "whathappenedto". Thanks for your kind words. .gz files can be used in a place of javascript and css files since all of the modern browsers support gzip compression. You may want to add a condition statement in you code that will check if browser supports gzip compression (some old browsers dont support gzip) and if it does support show him gzipped version , if not - show him just a minified version. I will post an FAQ on zbugs.com with a code samples how to do it.