Can we display default loading image before the actual image is displayed?

Dear all, I have the following html tag,

Before xxx.png is loaded, the html just only displays a blank square for a while and fill the required image later.
I want have a default loading image fill in the blank square first, Is it possible?

Thank you

Dear all, I have found the solution, just simply add “background-image: url(…)” in your css reference.

Thank you for your concern!!!

1 Like