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

Disable wind layer when the tab is inactive #41

Open
LuchtwachtersDelft opened this issue Oct 10, 2021 · 0 comments
Open

Disable wind layer when the tab is inactive #41

LuchtwachtersDelft opened this issue Oct 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@LuchtwachtersDelft
Copy link

LuchtwachtersDelft commented Oct 10, 2021

The wind layer is leaking a huge amount of RAM. If you leave the website running in a tab and forget about it, the browser eventually eats several GB worth of memory.

I suggest to disable the wind layer automatically when the tab is inactive, and/or to not start the wind layer on page visit.

To detect tab activity, maybe look into the document.hidden property.

@LuchtwachtersDelft LuchtwachtersDelft added the enhancement New feature or request label Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant