I want to display a dynamic progress bar that should start with ajax request and stop loading as soon as the response is received. My frontend includes ajax, jquery and backend in python-flask. Please help. [Link to code](https://codepen.io/vinrok/pen/GRgZRBE)