Skip to content

Instantly share code, notes, and snippets.

@charliepark
Created May 21, 2014 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charliepark/5825735dda6d72c1eb5a to your computer and use it in GitHub Desktop.
Save charliepark/5825735dda6d72c1eb5a to your computer and use it in GitHub Desktop.

When GZIPped, is this …

h1 {
  font-size: 3em;
  font-weight: bold;
}

h2 {
  font-size: 2em;
  font-weight: bold;
}

b, strong {
  font-weight: bold
}

… substantially different from this …

h1,h2,b,strong{font-weight:bold}
h1{font-size:3em}
h2{font-size:2em}

… when it comes to file download size?

(Obviously, this is short enough that it won't really matter. But on an enterprise-level site with thousands of classes, is one of these going to be radically different from a file-size perspective? Also: There are other benefits to extracting out common code, but I'm wondering at the moment about file size.)

@charliepark
Copy link
Author

Jeremy, thanks for running that test. I agree: it'd be worth running a larger-scale test on it. I'll let you know what I find out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment