Next.js
3 min
Infinite scroll that doesn't break the back button
Most infinite scroll implementations lose your place the moment you open a post and come back. Here's the fix, and why it needs both a cursor and a cache.
Read
Loading posts.
Writing · 2 posts
Mostly frontend architecture, performance and the parts of accessibility that keep coming up. Long enough to be useful, short enough to finish.
2 results tagged UX
Most infinite scroll implementations lose your place the moment you open a post and come back. Here's the fix, and why it needs both a cursor and a cache.
The white flash on load is a hydration problem, not a CSS problem — and there's exactly one place it can be fixed.
Showing 2 of 2 posts.
2 posts · that’s all of them