Skip to content

Commit

Permalink
fix: disable srcset attribute when the javascript resizer and lazyloa…
Browse files Browse the repository at this point in the history
…d is active, being redundant
  • Loading branch information
selul committed Feb 1, 2019
1 parent 688795d commit 76c0307
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions inc/lazyload_replacer.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ public function lazyload_tag_replace( $new_tag, $original_url, $new_url, $optml_
[
$original_url,
'src=',
'srcset=', //Not ideal to disable srcset, we should aim to remove the srcset completely from code.
],
array(
[
$low_url,
$opt_src . ' src=',
),
'old-srcset='
],
$new_tag
);

Expand Down

0 comments on commit 76c0307

Please sign in to comment.