r/imagus • u/imapersonirl • 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
7
u/Imagus_fan 21d ago
Here's an edit to the current
REDDIT_gallerysieve 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_postsieve.https://pastebin.com/E91yUZNR
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 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/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/frostN0VA 21d ago
For now it's either that or galleries not working at all.
https://old.reddit.com/r/imagus/comments/1xmzlii/grey_wheel_on_reddit_galleries/19s3p14zsouea/
0
u/[deleted] 21d ago
[deleted] — view deleted comment