-
Couldn't load subscription status.
- Fork 16
Description
This is an issue when bundling up the frontend folder. In the attached picture, the bundle size is about 1MB which is much larger than recommended size.As a result, our website is slow. Obviously, the demo website performs a bit slow comparing to when running development mode. Switching pages and the animation in resources will show the issue.
There are some solutions for it. One of suggestion is lazy-load or code-splitting techniques, aka import when needed. Other solution is to use vite package to do lazy load with some awesome features (it runs like Flash).
See links below for more information:
React code splitting: https://reactjs.org/docs/code-splitting.html
Vite: https://vitejs.dev/guide/why.html
