single-spa-examples
single-spa-examples copied to clipboard
single-spa-examples loads very slowly & appears to be using development version of react
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
- Open the URL in chrome while chrome devtools is open
- Go to network tab
- Hit Ctrl + shift + R
- 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
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.
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.