Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: end animations when the tab is destroyed #73

Merged
merged 1 commit into from
Jun 26, 2020
Merged

Conversation

patrickhulce
Copy link
Collaborator

kinda fixes #71 (memory usage won't grow when no open tabs, but will still grow while tabs are open until GC'd)

@patrickhulce
Copy link
Collaborator Author

Oh hm, this is probably an even bigger deal than #71 since badgeMetrics will never actually error, it will just error asynchronously causing a forever growing set of animations as you accumulate more tabs. Yeah great find @addyosmani! 👍

@addyosmani
Copy link
Member

Oh hm, this is probably an even bigger deal than #71 since badgeMetrics will never actually error, it will just error asynchronously causing a forever growing set of animations as you accumulate more tabs.

This was important to fix. Thank you, Patrick! I've verified that with all tabs close this avoids memory usage growing and usage seems to settle after tabs get GC'd otherwise.

Great work!

@addyosmani addyosmani merged commit fc7c50d into master Jun 26, 2020
@addyosmani addyosmani deleted the endanimations branch June 26, 2020 01:31
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.

[Memory usage] Background script
2 participants