diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module index 2b89e29..f24ae5e 100644 --- a/core/modules/responsive_image/responsive_image.module +++ b/core/modules/responsive_image/responsive_image.module @@ -183,7 +183,7 @@ function template_preprocess_responsive_image(&$variables) { if (isset($variables['sources']) && count($variables['sources']) === 1 && !isset($variables['sources'][0]['media'])) { // There is only one source tag with an empty media attribute. This means // we can output an image tag with the srcset attribute instead of a - // picture tag. Use srcset in the fallback image to avoid unnecessary + // picture tag. We skip using a fallback image to avoid unnecessary // preloading of images in older browsers. See // http://scottjehl.github.io/picturefill/#using-picture and // http://scottjehl.github.io/picturefill/#gotchas for more information. @@ -195,11 +195,6 @@ function template_preprocess_responsive_image(&$variables) { } $variables['img_element'] = array( '#theme' => 'image', - '#srcset' => array( - array( - 'uri' => _responsive_image_image_style_url($responsive_image_style->getFallbackImageStyle(), $image->getSource()), - ), - ), ); } else {