Preloader activity

Hello team, in my project i am using robotjs.
when i am calling a robot from the orchestrator using an html page it take some times.
so i want to add a preloader so the user will think the process is going to load.
so could yo please guide me how to add a preloader to the webpage before the robot start from the orchestrator