html5 - itemprop="image" on element not <img>? -
i have product page uses microdata. @ moment itemprop="image" attribute specified on first thumbnail thumbnail gallery. i'd specify high-res image have.
the trouble is, that's not displayed on page, it's loaded via javascript using lighbox. know can like:
<img itemprop="image" src="/img/high-res.jp" style="display:none" /> and image won't show , it's tagged product image. but, of course image still download.
any way can specify itemprop="image" on image not download image?
i tried changing <img> <span> testing tool didn't recognise it.
perhaps link element useful here - it's not displayed in rendered html, available in html source , therefore available javascript:
<link itemprop="image" href="/img/high-res.jpg">
Comments
Post a Comment