Skip to content

Conversation

@WillyEverGreen
Copy link
Contributor

  • Add loadAnimationIntervalId property to track the setInterval ID
  • Add stopLoadAnimation() method to clear the interval and hide the container
  • Call stopLoadAnimation() when blocks finish loading

Previously, the loading message animation (which cycles through fun messages like 'Catching mice', 'Tuning string instruments', etc.) would continue running every 2 seconds forever in the background, even after loading completed. This wasted CPU cycles and could cause subtle UI glitches.

Now the interval is properly cleared when loading completes.

- Add loadAnimationIntervalId property to track the setInterval ID
- Add stopLoadAnimation() method to clear the interval and hide the container
- Call stopLoadAnimation() when blocks finish loading

Previously, the loading message animation (which cycles through fun messages
like 'Catching mice', 'Tuning string instruments', etc.) would continue
running every 2 seconds forever in the background, even after loading
completed. This wasted CPU cycles and could cause subtle UI glitches.

Now the interval is properly cleared when loading completes.
@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant