title: How to create a loader in Javascript waiting for a function to end?
body: <p>I have a function in Javascript (in the browser, not node.js) that it takes a lot of time to commit. I want that while the function is being processed, the browser will present a loader, so the user can understand that he/she has to wait.</p>