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

Remove or refactor unused CSS #6

Open
pflenker opened this issue Jul 31, 2019 · 2 comments
Open

Remove or refactor unused CSS #6

pflenker opened this issue Jul 31, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@pflenker
Copy link
Contributor

pflenker commented Jul 31, 2019

The styles.scss contains a lot of CSS which is potentially unused in the theme - from carbon ads styling to what appears to be CSS for a timeline.
I would greatly appreciate it if the CSS which is not needed for the theme would either be removed or put into a separate file or clearly commented, so I can safely remove it from my repository.

Thanks and keep up the good work!

@amitmerchant1990 amitmerchant1990 added the enhancement New feature or request label Aug 6, 2019
@douglasrizzo
Copy link

douglasrizzo commented Sep 11, 2020

Hi. I am not a very web-savvy developer, but I found this website https://unused-css.com/, gave it the URL to my personal website (which is based on Reverie) and got the following result.

image

Maybe there is a free tool that could help us clean the CSS file, since this one is paid.

It only analyzed my home page, so I guess there are more parts of the CSS that are relevant.

@confor
Copy link

confor commented Nov 12, 2021

I've made a fork which removes unused CSS and other things https://github.com/confor/reverie-light

Details on what has been removed can be found in the README.

Notable features:

  • removed carbon ads
  • removed unused css (including the aforementioned "timeline")
  • removed social network icons
  • removed embedded and google fonts
  • removed css keyframes for animations (not used anywhere)
  • removed disqus
  • removed google analytics
  • allow zoom in phones
  • specify utf8 charset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants