Skip to content

v1.0.13

Choose a tag to compare

@mor-dar mor-dar released this 10 Aug 18:28
· 12 commits to main since this release

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:

  1. The observer to fail to observe properly
    ~50% of the time
  2. Multiple observers being created on
    reconnections
  3. 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