I have requirement  to use Page Loader Component in Web Application  because API sending response is slow and I am able to call on button or server action. But we have API call in preparation too which is too slow and in this case how we can use Page loader In Preparation. I was trying to find the solution in forum but I didn’t get anything.

Please help me to achieve this.

Thanks in Advance ??