friendship ended with social-app. php is my new best friend

add more image lazy-loading

Changed files
+4 -2
templates
+2
.gitignore
···
jwks.json
data/*.json
*.db
config.php
# caches
···
jwks.json
data/*.json
*.db
+
*.db-shm
+
*.db-wal
config.php
# caches
+1 -1
templates/_partials/embed_image.latte
···
<div class="postEmbeds img-{count($embeds)}">
{foreach $embeds as $i => $embed}
<div class="img" id="img-{$postId}-{$i+1}-small">
-
<button type="button" class="btn-invis" popovertarget="img-full-{$postId}-{$i+1}"><img src="{$embed->imgUrl}" alt="{$embed->alt}" /></button>
</div>
<div id="img-full-{$postId}-{$i+1}" popover>
<img src="{$embed->imgUrl}" alt="{$embed->alt}" loading="lazy" />
···
<div class="postEmbeds img-{count($embeds)}">
{foreach $embeds as $i => $embed}
<div class="img" id="img-{$postId}-{$i+1}-small">
+
<button type="button" class="btn-invis" popovertarget="img-full-{$postId}-{$i+1}"><img src="{$embed->imgUrl}" alt="{$embed->alt}" loading="lazy" /></button>
</div>
<div id="img-full-{$postId}-{$i+1}" popover>
<img src="{$embed->imgUrl}" alt="{$embed->alt}" loading="lazy" />
+1 -1
templates/_partials/embed_link.latte
···
<div class="externalLink">
<a href="{$embed->uri}" rel="external" target="_blank">
<div class="externalLinkImage" n:if="$embed->thumb">
-
<img src="{$embed->thumb}" alt="{$embed->title}" />
</div>
<div class="externalLinkInfo">
<div class="externalLinkTitle">{$embed->title}</div>
···
<div class="externalLink">
<a href="{$embed->uri}" rel="external" target="_blank">
<div class="externalLinkImage" n:if="$embed->thumb">
+
<img src="{$embed->thumb}" alt="{$embed->title}" loading="lazy" />
</div>
<div class="externalLinkInfo">
<div class="externalLinkTitle">{$embed->title}</div>