mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-28 20:30:25 +02:00
[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:
@@ -50,6 +50,7 @@ class GiphyBridge extends BridgeAbstract {
|
|||||||
'content' => <<<HTML
|
'content' => <<<HTML
|
||||||
<a href="{$entry->url}">
|
<a href="{$entry->url}">
|
||||||
<img
|
<img
|
||||||
|
loading="lazy"
|
||||||
src="{$entry->images->downsized->url}"
|
src="{$entry->images->downsized->url}"
|
||||||
width="{$entry->images->downsized->width}"
|
width="{$entry->images->downsized->width}"
|
||||||
height="{$entry->images->downsized->height}" />
|
height="{$entry->images->downsized->height}" />
|
||||||
|
Reference in New Issue
Block a user