Reputation: 125
I would like to start debugging javascript before the load event at each time each part of the javascript is obtained from the server.
I know that chrome can debug event triggered by the load page event. But if I'm not wrong during the loading of the page, the obtained javascript from the browser is executed before the load page event. (and some part can be executed again latter if they are saved in load page event)
Is it possible and how to do so?
Upvotes: 0
Views: 1264
Reputation: 124
For this you can write 'debugger' in your Javascript code and then open debugger in chrome and refresh page, now your page will stop on debugger and you can debug step by step.
Upvotes: 1