Skip to content
Advertisement

Is it possible to detect what action causes page reload?

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.

Advertisement

Answer

Try 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

Advertisement