add support for image loading=lazy attribute

This commit is contained in:
Andrew Dolgov 2020-02-13 20:20:55 +03:00
parent 47135160d1
commit 06b9d39662
1 changed files with 1 additions and 0 deletions

View File

@ -1282,6 +1282,7 @@
if ($entry->nodeName == 'img') {
$entry->setAttribute('referrerpolicy', 'no-referrer');
$entry->setAttribute('loading', 'lazy');
$entry->removeAttribute('width');
$entry->removeAttribute('height');