loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Prevent duplicate image loading (#25675)

Regression of #25672.

authored by

delvh and committed by
GitHub
f4c1f436 43c9a84a

+2 -1
+2 -1
web_src/js/features/imagediff.js
··· 65 65 }; 66 66 } 67 67 68 - $('.image-diff').each(function() { 68 + $('.image-diff:not([data-image-diff-loaded])').each(function() { 69 69 const $container = $(this); 70 + $container.attr('data-image-diff-loaded', 'true'); 70 71 71 72 // the container may be hidden by "viewed" checkbox, so use the parent's width for reference 72 73 const diffContainerWidth = Math.max($container.closest('.diff-file-box').width() - 300, 100);