Picturefill, additional src-attribute in img-element?
-
Hey there,
i am using this great plugin with the picturefill-method for a while now, but still beeing confused why the src-attribute is cleared in wp-retina-2x.php on line 135:
$element->src = null;since i got some troubles with a gallery-script and google started to remove all my images from its index (dont know if that is related in any way…), i changed the lines 134 and 135 according to http://www.webkit.org/demos/srcset/ like this:
$element->srcset = "$img_url 1x, $retina_url 2x"; $element->src = $img_url;and it works like a charm!
now i am not shure if i have missed anything here, is there a reason why there should be no src-attribute in the img-element?
The topic ‘Picturefill, additional src-attribute in img-element?’ is closed to new replies.