When attempting to observe the "isConnected" property of an HTMLElement, I found that it is a read-only property and there is no propertyDescriptor for it. This means that the traditional method of overriding getters and setters or creating a proxy object is not applicable.
I have learned about mutationObserver, but it seems they can only observe attributes. Additionally, they are resource-intensive for our application since we need to observe the "isConnected" property on every dynamically created element (80% of our application consists of dynamic elements).
Are there any alternative methods for observing changes to read-only properties?