I have created a custom login page by enabling anonymous users and setting the sign-in page in authentication under navigation But this loading bar keeps showing as soon as the page opens even if no process is occurring. Why is this happening and how to fix this?
Please check that whether you had given access to the login page
It's possible, if you're using a manually defined login flow, that you've simply forgotten to call the end progress action in a nanoflow somewhere.
Without additional information on your flows we may have a hard time helping you with troubleshooting.