r/imagus • • 21d ago

help Reddit galleries loading slowly

I have updated sieves and tried updating reddit_gallery sieve from a recent post. I hover mouse over a old.reddit gallery and the page seems to freeze for maybe a second or two before loading. regular i.reddit images load fine and quickly, but the galleries can take a few seconds.

Any thoughts on the issue / fix?

Thank you.

21 Upvotes

50 comments sorted by

7

u/Imagus_fan 21d ago

Here's an edit to the current REDDIT_gallery sieve to use a workaround so it makes the page request asynchronously.

This should remove the freeze when hovering over a gallery link on the old Reddit layout.

This sieve only applies to the old layout. If the freeze is a problem on new Reddit, a different fix will be needed for the REDDIT_post sieve.

https://pastebin.com/E91yUZNR

2

u/Far-Distribution4776 20d ago

Works great now, this fixed the little delay for me on Imagus Reborn. Thanks.

2

u/Kenko2 20d ago

I didn’t notice any difference in IR’s operating speed in this version compared to the previous one. I switched to the old Reddit interface and tested both versions using this link; the loading speed is exactly the same. That said, the new version works just as well for me as the old one, so I can include it in our rule-set.

3

u/Imagus_fan 20d ago edited 20d ago

Images likely won't open faster with this sieve, it only removes the slight freeze when hovering over a link. It's not noticeable if the page opens quickly but can be if it takes one or two seconds to load.

I had intended to add this code to the sieve earlier but, since it's less clear what the error is when there's a problem with it added, I wanted to wait until it seemed like Reddit was finished making changes.

2

u/Kenko2 20d ago

Got it, thank you. I’ll update this sieve in the rule-set.

2

u/bikemandan 20d ago

Thanks for all you do. MVP!

1

u/ThatCreepyBaer 16d ago

Any idea why this doesn't work for me? Exact same problem as OP.

1

u/Imagus_fan 16d ago

When importing, was Replace existing data selected? It needs to be selected to overwrite the existing sieve.

1

u/ThatCreepyBaer 16d ago

It was yes, the only difference that made was that I can now see the spinner when the gallery is loading. Still takes like 1-2s for the gallery to actually load.

1

u/Imagus_fan 15d ago

I should have mentioned it but there's a sieve in this comment that uses a different data file for galleries that loads faster.

It should be in the next rule-set.

2

u/ThatCreepyBaer 15d ago

Ah, thank you very much.

5

u/humblenarrogant 19d ago

Good news, I found a fast way.

Disclaimer: I think it only works if you are on old.reddit.com and logged in.

https://pastebin.com/jLvCntee

Asked Claude to write a sieve imitating the expand button of the old.reddit.com frontend. Because clicking expand loads the first image nearly in an instant, so the request it is using must be fast I thought. Working as expected for me.

Maybe it can be minified or further developed for an external link solution as well by other people.

1

u/Kenko2 19d ago

Thank you for your attempt to help. We need to get the specialist’s opinion.

u/Imagus_fan

2

u/Imagus_fan 18d ago

After testing it, it does load the file faster, usually about 150ms compared to the one I made that usually takes 350ms to 450ms to load. And some users mentioned it taking several seconds.

Only difference I noticed from the other sieve is it doesn't work on external links, though external are uncommon.

It would be good if it could be more widely tested in case there are unusual bugs. It's very different from the other sieve.

1

u/Kenko2 18d ago edited 18d ago

>> it doesn't work on external links

Can you give examples?

>> It would be good if it could be more widely tested in case there are unusual bugs.

I'll try to test it today too.

1

u/Imagus_fan 18d ago

An example would be galleries on the page in this link. With the previous sieve, hovering over an image in a gallery would show the album with it starting on the hovered image. With the new sieve, it only shows the single image.

However, gallery links aren't usually on external sites so it's probably not that important to fix.

1

u/Kenko2 18d ago edited 18d ago

Yes, this sieve also only shows the first photo for me.

Also, I found that Claude’s version doesn’t work with RedGifs in the Feed on Reddit — the yellow spinner.

Otherwise, it seems there are no problems.

1

u/Kenko2 18d ago

I’ve done some testing, and this version is indeed a bit faster - by about 0.5–1sec in my case. It runs stably, and I haven’t encountered any issues so far.

1

u/Kenko2 21d ago

What browser do you have (name and version)? And what extension do you have installed (name and version)? Do you have the SMH extension and the latest rules for it?

1

u/imapersonirl 21d ago

FireFox 153.6.0esr (32-bit) Imagus Reborn v2026.10.31 I do not have the SMH extension

1

u/Kenko2 21d ago

>> I do not have the SMH extension

Read the FAQ, p.12.

In general, if you have recently installed this extension, I recommend that you first configure it properly and prepare it for use as recommended in p.1 of the FAQ.

2

u/imapersonirl 21d ago

I have the SMH extension now, have followed updating the sieve as listed in the posted comments. Issue continues.

0

u/Kenko2 21d ago

>> Issue continues.

Have you already seen this post?

And 1-2 seconds is not a problem. The problem is when the delay is 5-10 seconds. Here’s my testing of the new sieve for Reddit Gallery.

2

u/imapersonirl 21d ago

I have seen that.

Good to know the issue I am experiencing is not a problem. Previous galleries loaded with delay, so was unsure if there was an issue with my setup. But if it is not a problem then I am mistaken.

4

u/zoapcfr 21d ago

It's happening to me too, but it's inconsistent. Sometimes it's near enough instant, other times there's a good ~3s delay, during which the wheel is not even there.

I'm on Chrome Version 157.0.8103.39 (Official Build) (64-bit), updated IR, seives, SMH, and rules yesterday.

1

u/Kenko2 21d ago edited 21d ago

Have you already seen this post?

3

u/zoapcfr 21d ago

Yes, that's how I updated it, and when the slow loading began.

1

u/Kenko2 21d ago edited 21d ago

Perhaps the gallery loads 1–2 seconds slower due to the specifics of the new version of the sieve, or due to the specifics of IR (in this case, you may try a different browser, as well as other extensions — Imagus / Imagus Mod). But in any case, 1–2 seconds is not a problem. This cannot be called a “large delay” (by the way, you can reduce the display delay parameter in the settings). If your delay is 5–10 seconds, then yes, it can be called a problem.

2

u/spectradawn77 21d ago

Not OP, noticed this as well, but it's not loading for me at all.

Latest Firefox

Have imported latest sieve, SMH, and UBo

Imagus Reborn v2026.10.31

2

u/Kenko2 21d ago

1

u/spectradawn77 21d ago

I have not, and the fixed the issue. Thank you!

1

u/bikemandan 20d ago

Seems like Reddit is monkeying around with their backend a lot lately

1

u/SpaceWashingMachine 17d ago edited 17d ago

Was told to repost this here so:

Not sure if it's an issue just with my setup since no-one else has reported on it, but some posts when I hover over them cause the entire browser to lag. As shown in this video, some posts work fine but some lag the browser and never load, and I can't seem to find the consistency with when it happens.

I'm using Firefox with Imagus Mod but I've also tried Imagus Reborn on stock settings and it does the same thing. I also have the latest SMH rules. I updated to the latest reddit_gallery sieve as well that was updated a couple days ago but it didn't have an effect here. I'm assuming it's reddit_post since disabling the sieve stopped it from doing anything, no image popup but also no lag. In general it makes using reddit kind of annoying as just moving my mouse on any page can just freeze the page.

The console never output anything upon hovering over the laggy posts, this is all it had, unsure if anything useful.

1

u/Kenko2 17d ago

I see, there are indeed some minor issues with certain images.

u/Imagus_fan

https://pastebin.com/ZsU5SDxi

2

u/Imagus_fan 16d ago

It looks like, instead of matching an image, it's matching the link and looping between two sieves. It should be fixed here.

https://pastebin.com/npmHcr7h

1

u/Kenko2 16d ago

90% works, thanks. But I also found a few problems with this sieve:

https://pastebin.com/a7TaCcrp

2

u/Imagus_fan 16d ago

Thanks, there were a few posts that the sieve needed improvements for. This seems to fix them but it's possible links that worked previously may not now though all the ones I tested still worked.

https://pastebin.com/nfKG2pHj

1

u/Kenko2 16d ago edited 16d ago

Thank you, everything has been fixed, except for this:

yellow spinner on video (in the Feed).

2

u/Imagus_fan 16d ago

This sieve should work with it now.

https://pastebin.com/uHmQHst5

2

u/Kenko2 16d ago

Excellent, thank you!

2

u/SpaceWashingMachine 16d ago edited 16d ago

Gave this a try, seems to work on everything with a few minor issues:

  1. There seems to be some lag now when loading any post. I recorded it in the same subreddit for consistency but it happens anywhere, especially bad on the home/popular page where the whole page stops responding completely. I don't think it's my PC since my CPU usage barely moves when it's doing this but I can't say for sure.
  2. For posts that don't have an image, it appears to show something unrelated (at 0:05 - 0:12, seems to be an ad? The post is just a link to another site)
  3. Only found this after and can't upload more than 1 video, but inside a post, hovering over the subreddit link, the icon or the author's name also causes some lag and sometimes loads an ad the same way as in number 2.

Thanks for your time to fix this.

1

u/Imagus_fan 16d ago

For posts that don't have an image, it appears to show something unrelated

Thanks for pointing this out. I didn't think to test on links that didn't have media. It looks like it's matching ad media when the post doesn't contain any.

The sieve below should should only match URLs in the post body, otherwise it shows a yellow spinner.

There seems to be some lag now when loading any post

This is because the sieve needs to make a synchronous request from the sieve code for the post page data to load correctly that causes the page freeze. Before Reddit made changes, the request was made by the extension and the freeze didn't happen. I'm hoping to have a fix for this but want to make sure the sieve is fully working first so that it's easier to tell what's causing an error.

Only found this after and can't upload more than 1 video, but inside a post, hovering over the subreddit link, the icon or the author's name also causes some lag and sometimes loads an ad the same way as in number 2

I think having the sieve activate on those links was intentional so users would have a way to load video and galleries when on a post. With the new sieve, it should only show relevant media and not ads. Hopefully an asynchronous fix works so the freeze can no longer be a problem.

https://pastebin.com/rZZUXXdu

1

u/SpaceWashingMachine 15d ago

Seems to be working, only showing a yellow circle now instead of an ad. Hopefully you can get the lag fixed. One super minor thing now seems to be that videos no longer show a caption from the post title like images do, only showing 'Video', though I can't say for sure if it was always like that or not. It's no big deal if it's too annoying to fix. Thanks again.

→ More replies

1

u/frostN0VA 21d ago

0

u/Kenko2 21d ago edited 21d ago

If a problem has arisen for you personally, that doesn’t mean it exists for everyone:

https://www.reddit.com/r/imagus/comments/1xmzlii/comment/19sbf0f2xr17o

video:

https://www.upload.ee/files/19947861/reddit_gallery_new_sieve_test.mp4.html

Cent 150 + IR 2026.10.31 (with fixed sieves and SMH rules) + 500ms display delay in the Settings.

0

u/[deleted] 21d ago

[deleted] — view deleted comment

1

u/Kenko2 20d ago

>> disable_on_video = true for the [LinkedMedia] sieve has not worked the past few days for some sites

It does not guarantee 100% video disabling on all sites. To do this, you need to use other analogue extensions, where this is possible or where video is not supported at all. Either use hotkey activation or trigger delay, all of which can be set in the settings.