'How to hide image's alt tag when you reload the page with lazyload?
I am using lazyload to display my images in my website (with data-src instead of src).
However, when you reload the page, you can see the alt tag appear (during 0.1s during the loading). I saw some similar questions, but not exactly helpful because nothing works for me, for example like this class:
img:-moz-loading {
visibility: hidden;
}
There is a way to hide the alt tag and the little picture (without removing the tag) during the reload of the page ?
The alt tag should only appear if the image doesn't exist at the end of the load
Thank you,
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|