"Is the user looking at this tab?" is a question answered by all the main web browsers. https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API #webdev
Why is this step necessary? mastodon.dbatley.com might not be the server where you are registered, so we need to redirect you to your home server first.
Don't have an account? You can sign up here