Search code examples
javascripthtmlcssphpstorm

Remove unused CSS links and JavaScript scripts


I'm developing a website and I want to remove unused stylesheet links and JavaScript scripts from my HTML pages to make the page load faster.

I'm using PhpStorm and it would be really grateful if someone could help me with this.


Solution

  • For css you can use: https://unused-css.com/ For js you can use: https://marketplace.visualstudio.com/items?itemName=RobertHoffmann.FindUnusedFiles