Dev update #13: What's been happening
Dev update #13: What's been happening
Dev update 13
As always all changes are on Nemmy.app.
So, 2 days I think without updates... what's been going on?
I basically had zero time to do an update but also very little time to actually code, however there has been some changes, so:
What changed
-
I added another branch, testing out a new way of rendering Comments (huge performance boost) and started testing client-side caching in addition to the server-side cache
-
Every post (/post/any id) will now be rendered on the server side, which means it won't "pop-in" after you load the side. This will also be very important with another change I'll make soon, which will enable me to cache these requests to Lemmy. Which in turn means incredible response times.
-
I continued the migration from Lemmy.world as the default instance, to being able to switch that anytime. This means if Lemmy.world is offline again, Nemmy will just switch to another big instance like Lemmy.ml as default. Of course that will change anyway if the user logs in.
-
I also added a temporary fix for the Login problem: Some may have noticed that if you didn't check the "stay signed in" checkbox, you would't get a cookie, the JWT would only be stored in session storage.
Session storage has a major flaw with the current system of how Nemmy works though, because session storage works only in 1 tab, not in any other. So you wouldn't be signed in when opening any post, since they open in another tab for now.
So the workaround for now is to just give every user a cookie, like most other websites would do anyway (the cookie isn't used for tracking, but it can be a security risk of having that without explicit knowledge).
-
I also started coding the whole "save the scroll position" thing, so Nemmy will always remember where you left off and scroll there for you.
-
The "explore" section in the search page has also been properly added, though I plan on changing the algorithm to get trending topics very soon.
-
There's also been some smaller bugfixes
Well, that's it for the updates for now
See you all soon!