Experimental throttling mode to avoid putting much load on the CPU
Experimental throttling mode to avoid putting much load on the CPU if there are bursts of DOM modification events, even though there are no changes.
It keeps a set of elements for which most mutations will be skipped.
Context:
refs https://github.com/ghostery/ghostery-extension/issues/757 refs https://github.com/ghostery/ghostery-extension/issues/1392
The best way to reproduce the high CPU load is to use the standalone extension and uBlock Origin together, as described here: https://github.com/ghostery/ghostery-extension/issues/757#issuecomment-2059003276
Test sites are reddit.com and heise.com. In both cases, the CPU load on Firefox reduces. But note that having dev tools open kills performance. With the console.warn, it can be observed later if a website triggered throttling mode temporarily.