single-spa-examples icon indicating copy to clipboard operation
single-spa-examples copied to clipboard

single-spa-examples loads very slowly & appears to be using development version of react

Open omril1 opened this issue 5 years ago • 1 comments

Describe the bug or question The site https://single-spa.surge.sh/react loads very slowly, Seems to download ~7.7MB over 30 seconds on the initial request, which is very bad for the public relations of this software. Additionally, react-devtools alerts that this site is using development build of react

To Reproduce

  1. Open the URL in chrome while chrome devtools is open
  2. Go to network tab
  3. Hit Ctrl + shift + R
  4. Open react devtools and look at the message

Expected behavior A clear and concise description of what you expect or hope to happen.

Screenshots and/or console output image

image

Additional context I thought about showing this software to my team, but the page took more than 30 seconds to load on my laptop, which was very embarrassing.

omril1 avatar Mar 11 '19 14:03 omril1

Yup, it appears that the first two bundles are huge.

However, those bundles are almost guaranteed to be from the React example code. Perhaps you can look at the source code and figure out why it's so large and submit a pull request to make it smaller?

This website was mainly built as a simple example of how many, many different frameworks could live on the same page, but as you have noticed it hasn't been optimized.

frehner avatar Mar 11 '19 14:03 frehner