[TanStack Start] JavaScript waterfall in the production build #3504
ali-idrizi
started this conversation in
General
Replies: 1 comment
-
this can be optimized for sure |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been trying out TanStack Start and testing its server-side rendering, and noticed a waterfall of JS requests during the first load. In the reproduction, I have a very simple router setup with one layout and an index:
The index is simply a motion component:
I am testing the production build, and I noticed that not all JS files are loaded by the initial HTML response, but some of them by other JS files, which is making a waterfall of JS fetching, and is very noticeable with throttled network:
tanstack-start-js-waterfall.mp4
I understand Start is still in beta, but is this expected behavior, or is it something that could be optimized in the future?
Beta Was this translation helpful? Give feedback.
All reactions