added lazy loading to ai-images webpage

This commit is contained in:
phixxy 2023-07-09 14:58:57 -07:00
parent b0149c4df0
commit 9a22bbcf75

View file

@ -62,7 +62,7 @@ async def upload_ftp_ai_images(filename, prompt):
html_file = "phixxy.com/ai-images.html" html_file = "phixxy.com/ai-images.html"
html_insert = '''<!--REPLACE THIS COMMENT--> html_insert = '''<!--REPLACE THIS COMMENT-->
<div> <div>
<img src="<!--filename-->" /> <img src="<!--filename-->" loading="lazy">
<p class="image-description"><!--description--></p> <p class="image-description"><!--description--></p>
</div>''' </div>'''
img_list = [] img_list = []