Disable only specific js files in the browser

I am trying to diagnose a problem with a web application that uses multiple Javascript files. One of the scripts modifies the DOM by introducing a new element into it. My idea is that I will disable js files one by one until I find one that causes the DOM to be modified. Is there a way in the browser to disable only specific js files? I would prefer a solution in Google Chrome (if this is not possible in Firefox or IE11)

+9
javascript firefox google-chrome google-chrome-devtools
source share
2 answers

Try DOM Change Breakpoints . Whenever any JS changes your DOM, you stop at the exact line of code that caused this change.

And yes, you can disable JS files. See Block Requests . DevTools blocks the request for the JS file, so it never starts. Although in this particular situation, the DOM Change Breakpoints will probably help you diagnose the problem faster.

0
source share

Perhaps you should use an external instrument, such as a violinist, or use browser plugins. Firefox and Chrome have plugins that can do this.

-2
source share

All Articles