Checking for unused CSS classes on a page

I am trying to arrange my page. I currently have several CSS files. I would like to exclude some CSS, getting only a few styles that are used from one large CSS file.

What is the best way to figure out which styles are used from a particular CSS file?

+3
source share
3 answers

In Chrome, you can check your page and this will show the unused rules, including which file they come from. Just hit F12 to download Developer Tools, click Audit, and then Run.

enter image description here

+8
source
0

F12, , "" . - Ctrl + F, . class . , class . , . .

0

All Articles