Record your CSS usage on your website - remove unwanted CSS
This is a follow up to: http://news.ycombinator.com/item?id=5095516 regarding CSS optimisation. The common request/theme in these comments was the ability to 'record' your CSS usage on your website as you used it, thus capturing all the CSS selectors (i.e. on a dynamic website). Turns out this functionality is actually inside Chrome Developer Tools; "CSS Selector Profile". The profiler seems to be designed to record how much work each CSS selector takes - but I've noticed that it actually 'records' your usage (you press start + stop) - and shows you how many times each selector was called…
What it does
In the maker’s words, at launch
This is a follow up to: http://news.ycombinator.com/item?id=5095516 regarding CSS optimisation. The common request/theme in these comments was the ability to 'record' your CSS usage on your website as you used it, thus capturing all the CSS selectors (i.e. on a dynamic website). Turns out this functionality is actually inside Chrome Developer Tools; "CSS Selector Profile". The profiler seems to be designed to record how much work each CSS selector takes - but I've noticed that it actually 'records' your usage (you press start + stop) - and shows you how many times each selector was called during your usage. i.e. some selectors were used 100 times, other selectors 0 times. So now you can look at your CSS across your whole dynamic site - and remove selectors that are never used.
Does the same job
all alternatives →



- ACA Chrome extension that extracts used CSS and combines it into one file2018 · ▲40
just wanted to share this useful tool with you. I have been looking at something like this for a very long time. https://chrome.google.com/webstore/detail/css-used/cdopjfddj... what it does: it analyses your html dom and looks for css classes. Then it extracts it all and combines it into 1 single css file. I used 5 css framworks which was on 340kb kb. This tool made it 36kb!

More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com

Launched alongside, February 2013
the whole month →- AW
Life & fun · 2013 · cmx.io
- PA
Life & fun · 2013 · bradjasper.com
- WC
Life & fun · 2013 · prettyip.meetstrange.com
- BY
Life & fun · 2013 · cloud66.com
- AC
Life & fun · 2013 · verifiedfacts.org
- HH
Life & fun · 2013 · hackyapp.com