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

Server-side rendering #228

Open
nrc opened this issue May 14, 2018 · 0 comments
Open

Server-side rendering #228

nrc opened this issue May 14, 2018 · 0 comments
Labels

Comments

@nrc
Copy link
Member

nrc commented May 14, 2018

In some contexts (think of something like docs.rs) it would be good if we could pre-render every page for a project and save them on the server, then serve them up as static HTML rather than render them on-demand with the current combination of server and client -side rendering.

A good first step would be to just pre-render everything into the file-cache. We'd then want to persist that info to disk so it doesn't need to be done every time the server is started. Ideally, it could be server by the web server, rather than by the cargo-src server and we'd ensure that all users shared a set of pages. We would also want to do any client-side rendering we currently do (e.g., adding ref menus) on the server side too - I think React may already have support for doing that, but I'm not sure how everything would fit together.

@nrc nrc added the big label May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant