Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've inherited a website that seems to import every JS and CSS framework my predecessor could think of. Is there an easy way to analyze the site and determine which ones are actually being used? Or do I have to manually check every page on the site?

share|improve this question
up vote 2 down vote accepted


Use a JavaScript code coverage tool such as JSCover. It returns a coverage chart like this one showing what percentage of functions in each linked JavaScript file are used.

JSCover coverage report


Download the site and recreate it locally, then use a CSS scanning tool such as Helium. It requires a line-separated list of URLs to parse.

share|improve this answer
Is JSCover not used to test how much of the code your unit tests cover? Without a comprehensive accompanying suite of unit tests I don't see that JSCover will tell you much at all. – danwellman Sep 17 '15 at 14:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.