Prevent AJAX requests in Chrome/Firefox after initial load

firefox, google-chrome, google-chrome-devtools

Solution

It's a little harsh, but you could override the XMLHttpRequest's call method, then it won't do anything

XMLHttpRequest.prototype.call = function () {};

Type that statement into the console panel of the page your debugging. A page refresh will reset the native functionality.

Problem

I am trying to debug a page in Chrome. Every few seconds the page issues AJAX requests that update elements on the page. Is there a DevTools option to stop these page requests? It makes debugging HTML/CSS difficult since the DOM is reset.

Original source