3 ms·
Embedding the API data in the initial bootstrap HTML to avoid an extra round trip does help a little. Waiting for the Javascript to download, execute and render
by laurencerowe 12y ago
Embedding the API data in the initial bootstrap HTML to avoid an extra round trip does help a little. Waiting for the Javascript to download, execute and render will easily dwarf that.
Implementing server-side rendering with React brought the time to content being readable on our site down from ~3 seconds to ~0.5 seconds. It still takes a couple of seconds for the JS to kick in, but that happens in the background and the site visitor doesn't notice.
- cyberpanther 12y agoHow much of that 3 seconds was rendering?
- laurencerowe 12y agoFrom memory, from js downloaded to rendered html in DOM was about 1.5-2 seconds. Rendering when the JIT has warmed takes 25-250ms depending on the complexity of the page. First run maybe 10x that.