Why Nostr? What is Njump?
2025-06-22 16:56:05

Vitor Pamplona on Nostr: One of the hidden outcomes of Amethyst Outbox is the preloading of everything a post ...

One of the hidden outcomes of Amethyst Outbox is the preloading of everything a post needs to render, including all quoted posts, url previews, videos, images, profiles per page (200 posts) instead of per post as it happens today.

This means that all inline elements that are rendered inside a post will be pre-sized such that when the post loads on scrolling, the UI already knows the size of each thing in the text and can avoid many layout changes while loading. This is particularly visible today when loading quoted notes from links (when the app doesn't know what it is yet) to inline quotes. Same for videos and images in posts that don't support the iMeta tags (like from Primal) that should have had the size information built in.

This will be extremely important to get our Shorts feed loading faster and potentially allowing the use of continuous scroll in that part of the app as well, a feature that is only possible if you control a central server to provide sizes for the videos before downloading them. We are going to do that without relying on any server and without overflowing the phone with unnecessary data or unnecessary memory use.
Author Public Key
npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z