Skip to content

Commit

Permalink
Merge pull request #43 from magefan/improve-lcp
Browse files Browse the repository at this point in the history
Improve LCP
  • Loading branch information
magefan authored Jul 3, 2024
2 parents 6397276 + 7942922 commit e76a7d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/BlockPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected function removeLoadingLazyAttributeFromFirstNImages(string $html, int

$newHtmlTag = str_replace(
['loading="lazy"', '<img '],
['', '<img mfdislazy="1" '],
['', '<img mfdislazy="1" fetchpriority="high" '],
$htmlTag
);

Expand Down

0 comments on commit e76a7d0

Please sign in to comment.