Hi Leo,
You will need to make an AJAX request to an Experience Endpoint and do your work in JQuery, a good example can be found on this forum post. You could either do the waiting with JQuery, or you could route to an intermittent waiting page, which would depend on your use case and preferences.
Let me know if I can answer any questions!
Julia