Creating automatic redirect for logged in members

That’s because the script of the page is loaded after the page is ready, that’s why it takes longer, instead, you can use a router page to check the current user, and redirect them immediately, before any page is loaded.