How to find which script modifies the css of a selected attribute

Is there a way to get information about which scripts modified the selected DOM element, and in what order?

On my website, I am changing the width of div A. However, some other scripts are changing this width after this, but I don't know what the script is. How can I find him?

Edit: After searching a little more, I have a fountain that in firebug you can right-click in HTML and select "stop javascript when changing" (or similarly, my firefox is not in English), the problem is that it is reset after reloading the page, making it for me.

+6
source share
1 answer

I am using Chrome development tools to debug my page. It supports adding breakpoints to dom elements, when dom attributes are modified by javascript, it immediately interrupts the rendering process. I think you can try.

enter image description hereenter image description here

+9
source

Source: https://habr.com/ru/post/952076/


All Articles