Skip to content

Large Bundle Size Makes Website Slow #86

@minhngo3818

Description

@minhngo3818

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Frontendtask relates to frontendReactRequire to use React jsenhancementimprove a feature for better usagefeature-requestrequest a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions