I have a webpage to optimize. When I enter it, the CPU usage increases drastically. I tried to use Chrome Dev Tools, but profiler 92% of the time is in the (program)
line. What could I do to find the culprit of this behavior?
I have a webpage to optimize. When I enter it, the CPU usage increases drastically. I tried to use Chrome Dev Tools, but profiler 92% of the time is in the (program)
line. What could I do to find the culprit of this behavior?
2 Answers
Reset to default 6I've had the same issues before. I don't have a lot of experience using Chrome Dev Tools but here are some useful links:
- Debugging JavaScript - Chrome DevTools - Google Developers
- JavaScript Profiling With The Chrome Developer Tools | Smashing Coding
- Chrome DevTools - Google Developers
Please use Timeline panel. It will show you what the page does. It shows information about javascript calls, gc, layout, paint etc.
https://developers.google./chrome-developer-tools/docs/timeline