From: Anthony Talarico Date: Tue, 28 Jun 2016 17:04:30 +0000 (-0400) Subject: remove srcset attr X-Git-Tag: v1.0.0^2~118 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=2ac8510c6d1df70ca21c6d7aef79eb751d6ffb10;p=WP-Themes%2Ffrancejourneys.git remove srcset attr --- diff --git a/js/app.js b/js/app.js index 1d99849..887f255 100644 --- a/js/app.js +++ b/js/app.js @@ -90,7 +90,7 @@ $(document).ready(function () { console.debug(img_src); $(this).css("height", 175).css("width", 'auto'); $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover"); - $(this).removeAttr("src"); + $(this).removeAttr("src").removeAttr("srcset"); }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 1a1e334..505007d 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -81,7 +81,7 @@ $(document).ready(function () { console.debug(img_src); $(this).css("height", 175).css("width", 'auto'); $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover"); - $(this).removeAttr("src"); + $(this).removeAttr("src").removeAttr("srcset"); }); });