Hey all, I’m back with some news!
All changes, as always, are live on nemmy.app. I recommend checking today’s update out yourself since it’s mostly animations and load times.
What Changed
- Posts can now be loaded in two different ways:
- SPA (Single Page Application) Mode (new)
- MPA (Multi Page Application) Mode (old)
Those terms mean something completely different, I chose them because what Nemmy does in these cases is similar to their ideas
When a User clicks on a Posts they see in their Feed (most use cases), the Post gets loaded in SPA mode. This means every cache and data fetching is bypassed and the Post data gets directly inserted into the Post page. You may notice this with a flashing “?preload=true” extension to the URL when visiting a post. Because of this, the post gets loaded literally instantly - no wait times.
MPA mode is still used for when you then reload the page, or click on a direct link to a post. Then the server tries different caching methods to reduce the load times as much as possible, also using server rendering so the data gets loaded insanely fast to the server and only passed down to the client.
The numbers using 4G/LTE Wifi with low latency
Time to load a Post with SPA Mode:
instantly
Time to load a Post with MPA Mode:
- If cached: About 0.3 Seconds if cached by the server
- Otherwise About 1 Second
- Endless scrolling for comments is finally here!
After yesterdays update, Users would have to constantly click the “load more comments” button - no more of that, the button is gone!
Comments now finally load in an endless stream on demand, when the user scrolls to the bottom.
- Authentication handling improvements
- Switching Users now updates most things (e.g. Communities, Profile pictures etc.)
- Adding a new User account now switches automatically to the new account (it did before as well but didn’t show until page reload)
-
A couple more animations have been added to pages
-
Nemmy has a new License
Before, Nemmy used a custom license I made up on the spot because I didn’t know any license and didn’t want to randomly choose one. Anyway, now Nemmy uses the AGPL License, which is the same License Lemmy itself uses.
- There have also been some smaller adjustments
Like adding more “EndlessScrollingEnds” how I like to call them
That’s it for today
See you all soon!
Edit
So there seem to be a ton of bugs left I overlooked.
Most notable:
- You can’t load posts from anywhere but the feed - I’m already working on a fix for that
- You can’t open posts in new tabs since the post then wants to access state that doesn’t exist in that tab
- Community pages don’t show the correct number of subscribers or active users