4

As of Chrome 40, the srcset attribute is supported, but will Google index the images within it?

3 Answers 3

4

So I set up a test page here.

Using Webmaster Tools' Fetch As Google feature, I saw that Google doesn't pick up the image declared in the img's srcset attribute:

enter image description here

However, adding the JavaScript Polyfill Picturefill I was very surprised to see that Google now does pick up the image declared in the srcset attribute. This means Google is running the JavaScript.

enter image description here

It's also interesting to note that Google gets the visitor rendering wrong - a visitor does see the second image.

I've submitted the page to be indexed and will add the result here.

3
  • As far as I know, Fetch as Google is JS enabled. And yes Google does utilize its JS crawler to crawl sites. But somebody tested it is much less frequent as disabled one
    – tom10271
    Commented Jan 10, 2018 at 1:26
  • Did you ever find out if adding Picturefill allowed Google Images to index the larger version? Commented Aug 5, 2018 at 12:18
  • Any updates on this?
    – Fred K
    Commented Jul 7, 2022 at 8:41
2

Update from Februari 2018. It seems like Google is still picking the src attribute initially. I added the higher resolution to the Image XML sitemap and it looks like Google is picking up those.

1

On a website I've published some years ago, I'm using srcset attribute on images but it seems google is not picking up those images (although it indexes the one on src attribute).

Check this query site:psicoanalista.albertofernandez.com.ar on Google Images. As you can see, only the smaller images (which are the ones I specified in src attribute as a fallback) are being indexed.

I'd like to find some official Google statement on this topic.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.