Unknown script action (probably async) causes page reload.
How can I find this action in the code?
At least, is there any way to set breakpoint on access to window.location
?
But I'm not sure that navigation is forced in such way.
In fact I need a way working in any one browser as page reloads in any of them.
PS: Same question in Russian.
Unknown script action (probably async) causes page reload.
How can I find this action in the code?
At least, is there any way to set breakpoint on access to window.location
?
But I'm not sure that navigation is forced in such way.
In fact I need a way working in any one browser as page reloads in any of them.
PS: Same question in Russian.
Share Improve this question edited Feb 26, 2016 at 13:33 Qwertiy asked Feb 25, 2016 at 18:30 QwertiyQwertiy 21.4k17 gold badges66 silver badges141 bronze badges 6 | Show 1 more comment3 Answers
Reset to default 14Try opening the Network panel, enabling Preserve log (which saves the network activity log between page loads) and then recreating the behavior.
https://stackoverflow.com/a/25734475/1669860
Better solution for me was to handle unload / beforeunload page events and watch stack trace on debugger breakpoint.
['unload', 'beforeunload'].forEach(function (eventName) {
window.addEventListener(eventName, function () {
debugger;
});
});
have you tried firebug?? free add-on https://getfirebug.com/downloads
It gives many options to debug.
give it a try.
beforeunload
orunload
- seems like they can't help me as they do not contain stack trace and I can't detect reason of reload there? Or there is a way? Or you have meant some other events? – Qwertiy Commented Feb 25, 2016 at 20:15