How to show page loader

So I am using an api on one of the pages on my website and I want the website loader to be visible as long as the api hasnt got the response.

Hi,

Please provide more details. If I understand correctly, you customized the code and created a form that sends an API request on the site? If so, please use the inspector to see where the loader is located, and then you can display it via JS. Also, check /assets/js/frontend.js to see how the loader is hidden.