# Sending compressed websites to the browser?

**URL:** https://forum.kirupa.com/t/sending-compressed-websites-to-the-browser/326235
**Category:** web dev
**Created:** [December 1, 2011, 1:12am UTC](https://forum.kirupa.com/t/sending-compressed-websites-to-the-browser/326235 "2011-12-01T01:12:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)
#### Post date: [December 1, 2011, 1:12am UTC](https://forum.kirupa.com/t/sending-compressed-websites-to-the-browser/326235/1 "2011-12-01T01:12:53Z")

</div>

Since HTML pages are basically text, they compress REALLY well. What if pages were sent to browsers in standard ZIP compression. It saves a massive amount of bandwidth if the client knows how to open them properly, and you don’t get annoying errors (primarily in JavaScript) that come from a site not being completely loaded.

I know there are tools that trim all whitespace from HTML, CSS, and JavaScript, leaving only the relevant text, but this would be more efficient still.

I doubt this will be beneficial unless you are run enterprise-level servers, but it was a neat thought, and I doubt I’m the first one to think of it. Is this type of system already out there?
