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: serve the app with a pre-render server #377

Open
tiero opened this issue Oct 12, 2023 · 3 comments
Open

Server: serve the app with a pre-render server #377

tiero opened this issue Oct 12, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@tiero
Copy link
Contributor

tiero commented Oct 12, 2023

Vite offers a server-side rendered version https://github.com/vitejs/vite-plugin-react/tree/main

Example https://github.com/vitejs/vite-plugin-react/tree/main/playground/ssr-react

Other library: https://github.com/Lomray-Software/vite-ssr-boost

@tiero tiero added the enhancement New feature or request label Oct 12, 2023
@tiero
Copy link
Contributor Author

tiero commented Oct 12, 2023

This will improve rendering times: a lot of time is a back and forth between the grid and the detail page, there is always a lot of networking going on, pre-rendering HTML in the server should help

@Janaka-Steph
Copy link
Contributor

Ok but we use React Query that should cache requests data. Did you really notice slow renderings?

@tiero
Copy link
Contributor Author

tiero commented Oct 15, 2023

Here attached Lighthouse report, re: first load

download.pdf

First load recording
https://www.loom.com/share/98435a4f6f67405a85bdb6e19f5e2087

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

No branches or pull requests

2 participants