Jon Galloway Jon Galloway - 1 year ago 90
CSS Question

How can I find unused images and CSS styles in a website?

Is there a tool or methodology (other than trial and error) I can use to find unused image files? How about CSS declarations for ID's and Classes that don't even exist in the site?

It seems like there might be a way to just spider the site, profile it, and see which images and styles are never loaded.

Answer Source

There's a Firefox extension that finds unused CSS selectors on a page. It has an option to spider the whole site. Version 3.01 should work with newer versions of Firefox.

And here's another option.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download