ASP .NET Razor pages route transitions
I am somewhat new to Razor pages and come from a background with Angular and am aware for long loading async pages I can use route animates or skeleton loaders. I have skeleton loaders on a Razor page but my issue more comes from when that page is loaded it is making an expensive API call so I would like to show a progress bar because right now from say the home page you hit the route in the nav bar and then nothing happens for a solid 5 seconds until the page loads and the skeleton loader is shown ever so briefly. I am using memoryCache so next time it’s not as bad but regardless been trying to google how to handle this better. Can someone point me in the right direct?