HCAWN / gcal-multical-event-merge

Browser extension that visually merges the same event on multiple Google Calendars into one event.
GNU General Public License v3.0
26 stars 5 forks source link

[Violation] Added synchronous DOM mutation listener to a <some> event #17

Open aspiers opened 1 year ago

aspiers commented 1 year ago

When enabling "Verbose" logging in the browser dev console, I'm seeing the following warning repeatedly:

[Violation] Added synchronous DOM mutation listener to a <some> event. Consider using MutationObserver to make the page more responsive.

It would be good to fix this to improve page responsiveness.

HCAWN commented 1 year ago

Hi Aspiers,

How frequently is repeatedly? Regular time-based, On mouse move/click, window resize etc? Based on your other issue, I assume you have a lot of events visible at any one time. Does the frequency this warning fires decrease if you hide some of your calendars and reload?

H

aspiers commented 1 year ago

It seems to happen 3 times every time there is a DOM update on the page (e.g. clicking on an event to view the details, or closing that details popup). I have over 50 calendars visible, so I doubt it's a per calendar thing.