I have a button that, when clicked on, needs to download a file by submitting a form using POST. [Edit to clarify: The file being downloaded is dynamically
When you submit the form the whole page is going to refresh, the loading image will definitely be removed unless you are not adding it somewhere else on page load.