Defer does not prevent execution post page onload. As far as displaying a DIV with this image when a request begins, you have a few choices: A) Manually show and hide the image: These tags will be processed by Microsoft.AspNet.Mvc.TagHelpers. B Examples for the jQuery ajax upload file I have a couple of questions about the attributes async & defer for the