Repository navigation
v1.0.13
I've applied only the critical fix that
addresses the root cause of the performance
issue:
What was changed:
- Moved ResizeObserver setup from
connectedCallback() to firstUpdated() - Kept calendar initialization in
willUpdate() where it was working correctly
What was NOT changed:
- No cache optimizations that could cause
side effects - No DOM reference caching that might
interfere with lifecycle - No event handler extraction that could
change timing - No memory management changes that could
affect functionality
Why this fixes the issue:
The original problem was that
ResizeObserver was being set up in
connectedCallback() before the DOM elements
(.wrapper) existed. This caused:
- The observer to fail to observe properly
~50% of the time - Multiple observers being created on
reconnections - Excessive CPU usage from resize
calculations
Now the ResizeObserver is only created
after the first render when DOM elements
definitely exist, which should eliminate
the performance issue while maintaining all
functionality.
The card should now:
- ✅ Work correctly in both preview and
saved modes - ✅ Not cause dashboard performance issues
- ✅ Handle resizing properly