find unused images, css rules, js script blocks [closed]

Somnath MulukPratik Kothari提出了一个问题:find unused images, css rules, js script blocks [closed],或许与您遇到的问题类似。

回答者CommunitySomnath Muluk给出了该问题的处理方式:

Unused CSS
  1. Take a look at the Firefox extension Dust-Me at

  2. Google Chrome has a website auditing tool in their developer console.

  3. Also I found this site for removing unused css - . Type the url of a site and you will get a list of CSS selectors. For each selector, a number indicates how many times a selector is used. This service has a few limitations. The @import statement is not supported. You can't configure and download the new clean CSS file.

  4. Helium CSS is a javascript tool for discovering unused CSS across many pages on a web site. You first have to install the javascript file to the page you want to test. Then, you have to call a helium function to start the cleaning.

  5. CSSESS is a bookmarklet that helps you find unused CSS selectors on any site. This tool is pretty easy to use but it won't let you configure and download clean CSS files. It will only list unused CSS files.

  6. How can I find unused images and CSS styles in a website?

Unused Images:
  2. How Do I Make a Bash Script To Find Unused Images in a Project?
Unused JS:
  1. Find unused CSS rule and js script in a web project?
  2. Find unused Javascript functions?



欢迎 JavaScript 爱好者