Duplicate code detection: Tools you can use

Viewed 3825

I am looking out for a software that identifies duplicate/redundant Javascript code. I found one such tool named CloneDR, but don't know how good it is .

I was looking out for similar open source tools . Please guide .

3 Answers

It may be worth checking out the coverage section in Google Chrome, relatively new feature: https://developers.google.com/web/updates/2017/04/devtools-release-notes#coverage

Find unused CSS and JS code with the new Coverage tab. When you load or run a page, the tab tells you how much code was used, versus how much was loaded. You can reduce the size of your pages by only shipping the code that you need.

Related