Skip to content

Commit

Permalink
Load preview images on demand
Browse files Browse the repository at this point in the history
Fixes #27150
  • Loading branch information
atrol authored and dregad committed Sep 2, 2020
1 parent cd3d106 commit e40b485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/print_api.php
Expand Up @@ -2049,7 +2049,7 @@ function print_bug_attachment_preview_image( array $p_attachment ) {

echo "\n<div class=\"bug-attachment-preview-image\">";
echo '<a href="' . string_attribute( $p_attachment['download_url'] ) . '">';
echo '<img src="' . string_attribute( $t_image_url ) . '" alt="' . string_attribute( $t_title ) . '" style="' . string_attribute( $t_preview_style ) . '" />';
echo '<img src="' . string_attribute( $t_image_url ) . '" alt="' . string_attribute( $t_title ) . '" loading="lazy" style="' . string_attribute( $t_preview_style ) . '" />';
echo '</a></div>';
}

Expand Down

0 comments on commit e40b485

Please sign in to comment.