privacytools / privacytools.io

🛡🛠 You are being watched. Protect your privacy against global mass surveillance.
https://www.privacyguides.org
Creative Commons Zero v1.0 Universal
3.12k stars 385 forks source link

✨ Feature Suggestion | PurgeCSS - Remove unused CSS #1354

Open dawidpotocki opened 5 years ago

dawidpotocki commented 5 years ago

PurgeCSS is a tool, which looks at HTML files and removes unused CSS.

Why? Because our CSS files are bloated. According to PageSpeed Insights https://developers.google.com/speed/pagespeed/insights/?url=privacytools.io our CSS is 46KB and could be reduced by 44KB, surely, that's not going to be that much, but still, there will be a difference.

Unused CSS is going to be only removed in production environment, to not make development harder.

nitrohorse commented 5 years ago

Great idea, I love deleting code! :smile: