I have lazyload working on my site. But if someone wants to print the webpage then id like the images to print out as well and not the loading spinner.
Here is what my images look like
<img class="lazy" data-original="images/gd-0007.jpg" src="../../img/loadingplaceholder.gif">
so using the @media print { } Id like to make the src the same as the data-original.
Tried this but no luck. (did it in the stylesheet to see if it worked)
@media print {
.lazy {
src: attr(data-original);
}
}
Here is where i got the idea: http://andydavies.me/blog/2012/08/13/what-if-we-could-use-css-to-manipulate-html-attributes/
Here is a jsfiddle if it helps: http://jsfiddle.net/gXpzb/