CPU overloading with piwik js library #12497
Labels
c: Performance
For when we could improve the performance / speed of Matomo.
not-in-changelog
For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone
Hi! We are using piwik.js library in our project and we've found a cpu overloading. There are near 300 elements to check visibility on page and even when page is idle (no scroll, no other user interactions on page) every analytics tick loads cpu too much. And
isNodeVisible
function takes most of time. Looks like we could reduce DOM calls by storing state of already tracked elements. Here is a link on fork with possible changes. https://github.com/nemish/piwik/tree/cpu-performance-2.Is there any workaround how to fix this stuff or other advise how to decrease cpu load?
Here is a screenshot which can explain current situation.
The text was updated successfully, but these errors were encountered: