I'm using react three fiber in my website which has added to the initial load time of my site. Rather than just using a useEffect hook with a timeout, I'm trying to create a website loader to show the user the progress of the initial load before the home screen appears.
I've seen it done in both of these nextjs sites but I'm unsure how and looking for direction. I'd only be looking to put a percentage in the middle of the screen and then build from there.
https://www.richardekwonye.com/ https://robin-noguier.com/
All help is appreciated.