Skip to content

Commit

Permalink
feat(search.php): adds lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahwxorg authored Dec 24, 2023
1 parent 7d648be commit 98a6bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class SearchResult
$url = $image->{"url"};
array_push($images, $url);
echo "<a class=img-result href='/image_proxy.php?url=", $url, "'>";
echo "<img src='/image_proxy.php?url=", $url, "'></a>";
echo "<img loading='lazy' src='/image_proxy.php?url=", $url, "'></a>";
}
echo "</div>";
$result = new SearchResult();
Expand Down

0 comments on commit 98a6bd2

Please sign in to comment.