I am writing some custom code and I want to add a loading icon to the page so that the user can see that the code is doing something and has not frozen. Rather than generate a new one, it would be useful to just…