[GiphyBridge] Lazy load images (#2512)

This change instructs browsers to gradually load images
as the user is scrolling down. This is good for performance
because browsers wont download all images right away.
This commit is contained in:
dag 2022-03-20 20:43:25 +01:00 committed by GitHub
parent ad6549efec
commit 1a3419a2d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,6 +50,7 @@ class GiphyBridge extends BridgeAbstract {
'content' => <<<HTML
<a href="{$entry->url}">
<img
loading="lazy"
src="{$entry->images->downsized->url}"
width="{$entry->images->downsized->width}"
height="{$entry->images->downsized->height}" />