2

I am provided a legacy code, where in my JSP files I can see tens of JavaScript files import. I want to understand if all these files are being used (and preferably what all methods), to reduce unwanted load time.

I have done similar exercise with Java, using code coverage tool. On local server I would deploy the application along with coverage tool and go through common flows from UI. This would give a good idea of what all Java code is being used. Fortunately there are only 8-10 flows for the app which can be executed manually.

I was wondering if similar method can be used to understand JS usage. or is there some other way to figure out what all files are being in use?

2
  • 2
    In Visual Studio you can install a plugin called Chutzpah. Chutzpah uses QUnit or Jasmine and has the ability to enable code coverage. Commented Nov 17, 2014 at 10:21
  • 1
    Belongs to programmers.stackexchange.com Commented Nov 17, 2014 at 10:24

1 Answer 1

1

I think Istambul is the tool you are looking for.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.