搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How to track a page load progression before events are fired?

more options

I'm working with a third-party project that is loading html, css and javascript into a browser. At some point, a class is added on to an element. With FireFox 70.0.1, is there a way I can walk through the page load progression until that class is added? This way I can see who is adding that element to the page?

I'm working with a third-party project that is loading html, css and javascript into a browser. At some point, a class is added on to an element. With FireFox 70.0.1, is there a way I can walk through the page load progression until that class is added? This way I can see who is adding that element to the page?

所有回覆 (1)

more options

If there is an easier way to tell when an event fires in the DOM, that would be awesome. I just want to pin-point which javascript file adds a certain class (injected through javascript), into the DOM.

When working with a project that has over 50 javascript files loaded, it's hard to see "which" js file injects code into the DOM. Can FireFox help me in this case if I know the class name that is being injected?

Many thanks for any assistant.