I want to use ionicon loading icon while the image loads. I want to use this when the image is set as a background-url as well as in an img tag. I have found this solution on stack overflow which works with fontAwesome, but i am not able to use it. This is what I have tried.