First I have Doubt about LazyLoading of images:
- Whether LazyLoading of images means Loading image in dom at runtime or fetch the image from the source at runtime and loading ?
Secondly Coming to the problem
- I got lot of example for lazyload images in tag. But for below scenario where the svg sprite images are used is there any example available.
I have html page with svg images used through css like below: HTML
<i class="svg-icon svg-icon-twitter"></i>
CSS
.svg-icon-twitter {
background: url("//localhost:3000/assets/sprite-footer.svg") 0 54.54545% no-repeat;
width: 24px;
height: 24px;
}
.svg-icon, .svg-logo {
display: inline-block;
}