Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It looks like something achievable with SPA frameworks such as next.js


In the spirit of clarification / correction (vs pedantry), SPA is a client-side web architecture pattern, whereas Next.js is a web framework best known for its support for rendering outside the browser (SSR and SSG).


Thanks. Terminology aside, what I referred to was exactly Next.js's pre-rendering (SSR & SSG) and prefetching. I feel like without them it'll be harder to achieve OP's interactivity with just React/Vue.


React / Vue is also irrelevant here however. It all depends how your actual prod code is built in the end. (For example you can use React with Next.js and still do all the SSR SSG stuff) In this case you're writing React for your server side rendered pages as opposed to the 'traditional' pattern of an SPA where everything happens in the client.


Might also be using the native Context Index API.[0] That's usually used to allow sites to be downloaded and browsed offline. I think that's how SVGOMG does it too

[0] https://developer.mozilla.org/en-US/docs/Web/API/Content_Ind...


The Content Index API only tells the browser that a page is available offline, you still have to cache it with a serviceworker.


Good tip, thanks




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: