15

I would like to propose an edit to the Screenshot of the Week widget: Have the image that appears in the widget be a smaller version of the original so that it doesn't unnecessarily drain resources. (Shadow's answer here originally pointed out the resource drain).

The link might need to be rewritten, depending on the way this code is generated (PHP?), as they currently have the same target:

<a href="https://i.sstatic.net/rybqs.jpg">
  <img class="wmx100" src="https://i.sstatic.net/rybqs.jpg" alt="">
</a>

If these links are not identical in the back-end code, we can simply replace the second with the medium-sized image generated by Imgur, i.c.

<img … src="https://i.sstatic.net/rybqsm.jpg" …>
                                             ↑

I have another proposal to tweak the Screenshot widget, which can be found here.

7
  • 1
    Worth to mention that the resources being drained are of imgur, so no big deal for SE. The more important consideration is loading speed for slow connections. Jun 23, 2021 at 8:19
  • 3
    @ShadowTheVaccinatedWizard Well, also for loading the page. That original phrasing is probably a little off, but users having slow connections might benefit from this change.
    – Joachim
    Jun 23, 2021 at 12:46
  • I also seem to recall the image being un-clickable back before it was added to the site here. Clicking it now takes you to the full image. As long as that click still takes you to the full size image, I think this would be a good idea.
    – Booga Roo
    Jun 25, 2021 at 14:11
  • @BoogaRoo Yes, definitely, hence the change in only the <img> tag.
    – Joachim
    Jun 25, 2021 at 21:23
  • @Dragonrage (or any other mod): are you mods able to change the code, or should I bring this up at Meta? I feel like these changes would improve the widget, and very quickly and easy to implement, but haven't gotten any reaction all these years.
    – Joachim
    Oct 17, 2023 at 13:42
  • 2
    @Joachim I wish we could perform code edits. It would be nice if certain site features could have the source code released, so that we could propose changes more directly (with SE having the final 'merge' decision).
    – Robotnik Mod
    Dec 5, 2023 at 4:16
  • 2
    [status-review] - Now that the Imgur migration has happened, and given the new solution has the same resizing feature set, adding this to review so it can be prioritised in the backlog. @CM team - you can classify this as a performance optimisation which would improve load times of Arqade and Photography (the two sites I know that use the "Custom Sidebar Content" Image widget).
    – Robotnik Mod
    May 23 at 23:28

0

You must log in to answer this question.