Only add loading=lazy if I didn't already specify it on the img.
This commit is contained in:
parent
ec38f1a47a
commit
aaa7a9bdb1
1 changed files with 2 additions and 1 deletions
|
@ -654,6 +654,7 @@ def inject_footnotes(soup):
|
|||
def set_img_lazyload(soup):
|
||||
imgs = soup.find_all('img')
|
||||
for img in imgs:
|
||||
if not img.get('loading'):
|
||||
img['loading'] = 'lazy'
|
||||
|
||||
# FINAL MARKDOWNS
|
||||
|
|
Loading…
Reference in a new issue