Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bloated CSS [unrelated to textual content] #7

Closed
mathiasbynens opened this issue Dec 17, 2009 · 4 comments
Closed

Bloated CSS [unrelated to textual content] #7

mathiasbynens opened this issue Dec 17, 2009 · 4 comments

Comments

@mathiasbynens
Copy link
Contributor

Is there a reason why you’re including blueprint.css and syntax.css? You’re not using any of these at the moment.
If you do not plan on ever doing so, I would be happy to rewrite the CSS for you in 1 file (instead of 5) containing ± 20 lines (instead of, what, like 1000?). This would greatly reduce HTTP requests and file size, i.e. bandwidth.

Just let me know :)

Cheers

@mojombo
Copy link
Contributor

mojombo commented Dec 17, 2009

The reason is that I copied the site from another that used that stuff. I'd welcome a patch that streamlined things!

@mathiasbynens
Copy link
Contributor Author

Fixed.

This commit adds an unnecessary file, css/.DS_Store — sorry about that. I fixed this in another commit.

@mojombo
Copy link
Contributor

mojombo commented Dec 18, 2009

Thanks, this is now merged and deployed!

@mathiasbynens
Copy link
Contributor Author

Comparison

Old files

CSS

-rw-r--r--  1 Mathias  staff   1933 18 dec 09:37 css/blueprint/ie.css
-rw-r--r--  1 Mathias  staff   1284 18 dec 09:37 css/blueprint/print.css
-rw-r--r--  1 Mathias  staff  12058 18 dec 09:37 css/blueprint/screen.css
-rw-r--r--  1 Mathias  staff    668 18 dec 09:37 css/screen.css
-rw-r--r--  1 Mathias  staff   3738 18 dec 09:37 css/syntax.css

HTML template

-rw-r--r--  1 Mathias  staff    818 18 dec 09:37 _layouts/default.html

Total size

File size: 1933 + 1284 + 12058 + 668 + 3738 + 818 = 20499 bytes
HTTP requests: 6

New files

CSS

-rw-r--r--  1 Mathias  staff   648 18 dec 09:37 css/main.css

HTML template

-rw-r--r--  1 Mathias  staff   238 18 dec 09:37 _layouts/default.html

Total size

File size: 648 + 238 = 886 bytes
HTTP requests: 2

Conclusion

The total size of the affected files was reduced from 20499 bytes to 886 bytes.
The number of HTTP requests was reduced from 6 to 2.
This optimization saves you from serving 19613 unneeded bytes and 4 HTTP requests every time semver.org is visited. Yay!

Mathias

taringamberini pushed a commit to taringamberini/semver.org that referenced this issue Aug 16, 2013
alexandrtovmach added a commit that referenced this issue Jun 13, 2020
yochem added a commit to yochem/semver.org that referenced this issue Jul 16, 2024
It looks like semver#7 introduces a single-file `main.css`, and makes the
other css files unnecessary. This commit also deletes these file to
reduce confusion (and repo size).
@yochem yochem mentioned this issue Jul 16, 2024
3 tasks
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants