Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i find unused css in ajax app?

Tags:

html

jquery

css

I've been searching and i can't find any ff addons or javascript for finding unused css in ajax apps.

dust-me selectors can do a site-crawl, but i'm looking for something that examines loaded-in content...

I'd like something where i can press 'record' and then make a load of clicks which will check off the used selectors, and hoping to find an existing one rather than try to write my own with jquery!

like image 332
Haroldo Avatar asked Jun 18 '10 11:06

Haroldo


2 Answers

In Google Chrome, open up the page you want find the unused css rules in.

On the menu select View -> Developer -> Developer Tools

Select the Audits tab in the toolbar.

Make sure the Web Page Performance is checked, then Run for Audit Present State.

You'll have a list of unused CSS rules.

Hope that helps.

like image 79
ballmw Avatar answered Sep 28 '22 20:09

ballmw


Chek this tools :

http://wari.konem.net/

http://code.google.com/p/css-redundancy-checker/

like image 31
Pranay Rana Avatar answered Sep 28 '22 21:09

Pranay Rana