Agaric wants to parse our CSS files for declarations unused by our sites

By Benjamin Melançon
on 11 Jan
0 comments

Key words and phrases

css remove if not used find obsolete historical vestige cascading stylesheet statements

Tags

Description

Ask the internet and ye shall receive:

http://www.sitepoint.com/blogs/2007/07/30/find-unused-css-selectors-with...
http://www.sitepoint.com/dustmeselectors/

As with any automated tool, use your human intelligence and discretion if you can find where you put it.

This goes double with a content management system like Drupal, and triple when you're using JQuery to add and remove classes and IDs.

There's simply no way on a dynamic web site, that can treat anonymous users and users with different roles in varying ways, where JQuery can change the CSS selectors called based on clicks and PHP can change it on context, for a spidering script to catch all of the CSS that's actually used.

But this special CSS, we hope, has made more of an imprint on your mind when you put it in and you won't delete it just because some CSS and HTML DOM spidering script tells you to.

 

Post new comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <small> <pre> <strike> <sub> <sup> <kbd> <s>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.