0

How can i check if an external javascript file is being used in the page or not? I need to cleanup the codes where there many external javascript files imported. I am not the original developer of the code, is there any way to do this?

Any tools or IDE will be better and helps.

Thanks ahead.

4
  • possible duplicate of Is there a tool to remove unused methods in javascript? Commented Feb 22, 2012 at 1:13
  • @Purmou, I don't think with have same problem with the post you mentioned. Commented Feb 22, 2012 at 4:00
  • @Ken, thank you for the advise, I do read that post before, but I am not sure I understand what you mean? Did I do something wrong here? Please guide me, I may have doing something that I am not aware that is wrong here. Thank you. ^_^ Commented Feb 22, 2012 at 4:01
  • 1
    @Ken, thank you for your guide. I am sorry if I forgot to marked as answers for the response. I will go do that. Again, thank you. Commented Feb 22, 2012 at 5:45

1 Answer 1

3

Use Firefox with the Web Developer add-on.

Tools -> Web Developer -> Information -> View JavaScript, then choose "Collapse All" to see a summary

I think Firebug has an option to show includes, too.

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.