suneeth
suneeth

Reputation: 165

How to find the JavaScript that hangs the browser?

I have a webpage that hangs due to some of its javascript. I don't have access to the source code for this webpage. Is there anyway that I can find the javascript that is causing the problem using chrome/IE dev tools?

Upvotes: 0

Views: 3345

Answers (1)

Marlon Bernardes
Marlon Bernardes

Reputation: 13843

If you can open the webpage you have it's source code. In the worst case scenario the code is minified/obfuscated so it could be unreadable.

Using chrome you could check the profiles tab and start colllecting javascript cpu profile. After that you need to analyse where the execution time is spent.

Profiles

Analysis

Upvotes: 3

Related Questions