Ensure the visibility change event listener for health checks is set up only once and properly removed on destroy to avoid memory leaks and duplicate handlers.
Ensure the visibility change event listener for health checks is set up only once and properly removed on destroy to avoid memory leaks and duplicate handlers.