Is there a way to wait in Html5?

Hello,
i want to add a wait or a sleep when after i executed a specific function. Is there a way to add this sleep or wait so when i launch my project as Html5 it will wait after the execution of the specific function? The only working way i know would be a delay in a blueprint after the function call but i want to know if there is a better way of doing this.

That is the only current way. It is not possible to add any forced sleeps to user code, since that would block rendering, io, audio, and the browser itself from updating. A blueprint delay node, a timer, or a callback function in JavaScript is the proper way to achieve these types of asynchronic behavior.