Why is it important to serve compressed JavaScript and CSS files? I understand that it reduces file size, but does the browser/webserver have to decompress them to read them? It's been mentioned that the webserver handles the compression. Does this mean we should link foobar.css.gz
instead of foobar.css
in our HTML document?
Can you explain how the compression of JS and CSS files works? What are the benefits of doing this? Are there any drawbacks to consider? And how can one go about implementing it?