views:

131

answers:

1

I've been looking into IntelliJ's advanced features, specifically its on-the-fly CSS validation (their site says that it can find "Unused CSS class definitions") to help us clean up our massive CSS files in our hundreds of JSP pages. IntelliJ has so many features and seems to be pushing the envelope in many ways but how much can IntelliJ's tool CSS tool actually do? Will it work with JSP includes?

So, if I have a div with a class name in an outer include and further html elements within inner includes will it catch unused styles on what would be the final rendered page? Or is it much more rudimentary?

In our system the JSP file names to be included are dynamically generated so it'll probably not work on those. Perhaps someone familiar with IntelliJ could comment.

A: 

Not sure about IntelliJ, but if you want to check for unused selectors on pages that have been rendered, you could try this:

https://addons.mozilla.org/en-US/firefox/addon/5392