3 ms·
Needs to be completely redone using Next.js, TypeScript, and React Router for optimal efficiency. Use a React Reducer to reduce the anchor tags into discrete ac
by iamleppert 3y ago
Needs to be completely redone using Next.js, TypeScript, and React Router for optimal efficiency. Use a React Reducer to reduce the anchor tags into discrete actions and run the code in a webworker off the main thread which maintains the vdom and does real time dom diffs based on semantic type decorators. For communication, I prefer post message and shared array buffers.
- SebastianKra 3y agoI you're gonna make this point, maybe don't use an example where the browser history is frequently busted after commenting. HN would benefit from a bit of SPA logic.
- jraph 3y agoBusted is a stretch. You can long click on the previous button and skip the problematic page, if there's one. In any case, an SPA is not the solution for this problem.
- Alifatisk 3y agoDon’t give them ideas
- jraph 3y agoI think it also needs analytics (including cursor tracking) and a bit of A/B testing.
- rizky05 3y ago[dead]