Not Logged In

mincss 0.4.1

Clears the junk out of your CSS but finding out which selectors areactually not used in your HTML.

By Peter Bengtsson, 2012-2013

Why?----

With the onslaught of Twitter Bootstrap upon the world it's verytempting to just download their whole fat 80+Kb CSS and serve it upeven though you're not using half of the HTML that it styles.

There's also the case of websites that have changed over time butwithout the CSS getting the same amount of love refactoring. Then it'svery likely that you get CSS selectors that you're no longer or neverusing.

This tool can help you get started reducing all those selectors thatyou're not using.

For example, if you have a build step or a runtime step that convertsall your CSS files into one (concatenation) and trims away all theexcess whitespace (compression) then the output CSS can still containselectors that are never actually used.

What about AJAX?----------------

If you have a script that creates DOM elements in some sort of``window.onload`` event then ``mincss`` will not be able to know thisbecause at the moment ``mincss`` is entirely static.

So what is a web developer to do? Simple, use ``/* no mincss */`` likethis for example:

.logged-in-info { /* no mincss */ color: pink; }

That tells ``mincss`` to ignore the whole block and all its selectors.