Comment on Why is lemmy.ca so much faster than lemmy.world?
MrKaplan@lemmy.world 5 days ago
where are you located? do you have an example of things loading slowly? for me things are loading instantly, but if you’re not within the EU you’re likely dealing with latency across the globe
AFKBRBChocolate@lemmy.ca 5 days ago
I’m in the US, in Southern California, so for sure could be contributing. Not sure where .ca is hosted.
As for an example, I just went to .world on my desktop browser (firefox) and loaded /all /new. It was 16 seconds between the click and all the visible graphics being loaded. The same thing on .ca was just under 5 seconds. On my tablet, the difference is greater.
MrKaplan@lemmy.world 5 days ago
how long does it take in an incognito browser window?
AFKBRBChocolate@lemmy.ca 5 days ago
Oh, much, much faster! Interesting. Okay, why is that?
MrKaplan@lemmy.world 5 days ago
there were some caching issues in lemmy-ui where it would unnecessarily eat up disk space for caching without even making use of it properly. there was a change done in 0.19.12 that was supposed to mitigate this, but for users who have already collected this it won’t automatically delete the unnecessary cache until they logout: github.com/LemmyNet/lemmy-ui/pull/3150
even when clearing this manually though i still see this take longer than you’d expect to load, it seems that the image cache is still slowing things down.
i also had some delays on images on the front page before all media loaded. i was able to speed things up again by executing
await window.caches.delete(“image-cache”)
in my browser dev tools console, but that is certainly not something to expect from regular users.i’ve raised a new issue about this now: github.com/LemmyNet/lemmy-ui/issues/3195
meanwhile, you can also work around this by deleting cached data for lemmy.world in your browser, at least until it fills up again.