Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💸 Bundle Size - React-Icons #3673

Open
amankumarrr opened this issue Mar 4, 2025 · 0 comments
Open

💸 Bundle Size - React-Icons #3673

amankumarrr opened this issue Mar 4, 2025 · 0 comments

Comments

@amankumarrr
Copy link
Member

@babakamyljanovssw @wicksipedia

Description
The current implementation of react-icons in our project significantly increases the package size, leading to performance issues, including slower page load times for users.

This problem is also discussed in an open issue on Next.js: vercel/next.js#70666.

Impact

  • Increased bundle size: The entire react-icons package is being included instead of only the necessary icons.
  • Slower load times: Users may experience delays as unnecessary assets are loaded.
  • Potential SEO & UX impact: A slower page affects user experience and search engine rankings.

Proposed Solution

  • Optimize imports by using tree-shakable modules instead of including the entire react-icons package.
  • Use direct imports from @react-icons/all-files (or similar) to ensure only the required icons are bundled.
  • Investigate alternative lightweight icon libraries if necessary to further reduce package size.
@github-project-automation github-project-automation bot moved this to 🤷‍♂️ Needs Triage in SSW.Website Mar 4, 2025
@amankumarrr amankumarrr moved this from 🤷‍♂️ Needs Triage to 🔖 Backlog - Ready in SSW.Website Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔖 Backlog - Ready
Development

No branches or pull requests

1 participant