-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A resource on vdom based static site generators #20
Comments
Thanks @kanishka-work :)) I've been doing some FRP recently with
I'm going to keep this open though because I don't fully understand the hydration + jsoo idea but it sounds quite interesting so I'd like to return to it when I have some more time :)) Thanks again! |
The only thing I would add here is that you want to aim for the following... On first entering the site, you will want to have a page like:
and you will want jsoo to take over "main" and mount the application ("hydrate") over that dom node. I think that's the minimum you need to achieve decent lighthouse scores and be compatible with SEO. A next step after that is to implement code splitting. NextJS also has a concept of prefetching pages when a user hovers over a link, which might be fast enough where the pretender isn't needed for lighthouse performance scores..At that point, you would only use pretender for SEO. |
The following might be useful if you start to go down the path of incorporating jsoo w/vdom library. The link below is an early commit in
react-static
, which is one of the simpler React based static site generators. It demonstrates walking through a routing tree and invoking render on a set of React components corresponding to each route. I'm not sure if there is an equivalent of hydrate in any of the jsoo vdom libraries currently.https://github.com/react-static/react-static/blob/e01098637b05f25f0f9e8009a4dafbc36b6e9878/build.js
Feel free to close this issue now or leave it open as a thread for designing jsoo integration.
The text was updated successfully, but these errors were encountered: