3

How can I use picturefill to serve retina images?

Currently I'm using the second version of picturefill.js which works as a polyfill.

My HTML code is:

<img src="http://placehold.it/300x150" srcset="http://placehold.it/600x300 2x" alt="Alternative" />

The problem is: all browsers (except Chrome) are getting the "2x" version, but my screen doesn't support retina.

I think Chrome is working because this feature was recently implemented.

What am I doing wrong?

Caio Tarifa
  • 5,973
  • 11
  • 46
  • 73

1 Answers1

-1

I would test with actual .jpg images you have copied to your server, rather than using placehold.it - you'll just confuse yourself.

patrickzdb
  • 928
  • 1
  • 10
  • 26