18
submitted 1 year ago by ribboo@lemm.ee to c/voyagerapp@lemmy.world

When scrolling the feed with compact mode on, thumbnails are loaded while posts are shown.

Some sort of lazy loading would be awesome here. So thumbnails would get preloaded before you actually scroll down, thus you’d never see the actual loading happen.

Would look and feel much smoother.

top 5 comments
sorted by: hot top controversial new old
[-] AngryClosetMonkey@feddit.ch 3 points 1 year ago

Lazy-loading is exactly the opposite of pre-loading 😅

[-] ribboo@lemm.ee 2 points 1 year ago

Lazy loading is definitely used for exactly this. I’ve done similar stuff in react native. You load “just what you need” which is a couple of thumbnails more than can be seen.

[-] svahnen@lemm.ee 1 points 1 year ago

They don't need to cancel each other out.

Lazy loading usually means to load the image at a lesser quality to have something to show the user very fast, so yes technically this can be called opposite of pre loading if used solo.

Pre loading in this instance usually means loading before the user sees the image.

These 2 things can be used together, an example could be to lazy load images at a low quality that are further down the feed before you scroll to them, and load the full image as you get closer to it/have it show on the screen.

But I'm sure the devs knows about thease tricks already

[-] misk@sh.itjust.works 1 points 1 year ago

Given the non-commercial nature of Lemmy it's worth considering how much strain this would put on instances. It's all a balancing act of user convenience and cost to instance owners and I wonder how much Lemmy apps consider this. I don't have strong opinion on either approach, just my $0.02.

[-] ribboo@lemm.ee 8 points 1 year ago* (last edited 1 year ago)

It should barely put any strain at all in all honesty. It’s not preloading all thumbnails, but perhaps the next 10-15 or similar.

Most of the time these would be loaded anyway. It’s only the time when you’re finished scrolling it’ll be 10-15 thumbnails that are loaded and not seen.

this post was submitted on 19 Aug 2023
18 points (100.0% liked)

Voyager

5585 readers
50 users here now

The official lemmy community for Voyager, an open source, mobile-first client for lemmy.

Download on App Store

Download on Play Store

Use as a Web App

Download on F-Droid

Rules

  1. Be nice.
  2. lemmy.world instance policy

Sponsor development! 👇

Number of sponsors badge

💙

founded 1 year ago
MODERATORS