Mobile app version of vmapp.org
Login or Join
Gail5422790

: How to check if linked JavaScript and CSS files are being used? I've inherited a website that seems to import every JS and CSS framework my predecessor could think of. Is there an easy way

@Gail5422790

Posted in: #Css #Javascript

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gail5422790

1 Comments

Sorted by latest first Latest Oldest Best

 

@Harper822

JavaScript

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.



CSS

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme