Skip to content
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

@lit/ssr ? #877

Open
neviaumi opened this issue Feb 18, 2025 · 1 comment
Open

@lit/ssr ? #877

neviaumi opened this issue Feb 18, 2025 · 1 comment

Comments

@neviaumi
Copy link
Owner

neviaumi commented Feb 18, 2025

Maybe adopt @lit/ssr would be good ideas.

When i only have 1 page, no JS interaction, no dependency.

It shouldn't rocket sciences and i can enjoy the pre-rendered benefit such as quick load and SEO.

Abaility to fetching data from somewhere ...etc.

So after build, it should only require html and CSS.

Possibly Zero JS

@neviaumi
Copy link
Owner Author

neviaumi commented Feb 25, 2025

https://lit.dev/docs/ssr/server-usage/#handling-renderresults

Also it possibly rendering the elements tree and seem to have
import {collectResult} from '@lit-labs/ssr/lib/render-result.js'; to render web component into HTML ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant