SSWConsulting / SSWConsulting/SSW.Website
💸 Icon Picker - Bundle size too large
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 14
- Forks
- 10
- Avg merge
- 13h 51m
- Merged PRs (30d)
- 38
Description
Description
As per Isaac's comment, we've added an icon picker for the new consulting pages. However, this component increases the website's bundle size because it imports the entire library for React Icons Box Icons.
https://github.com/SSWConsulting/SSW.Website/issues/3316#issuecomment-2502339115
Proposed solution
We have 3 options here:
- Choose a less expensive different icon library (i.e. one that uses CSS)
- Implement an endpoint for incrementally fetching the icons from react icons
- Find a way to only dynamically import the icons that we need to reduce our page bundle size (still unsure why the bundle for the Tina editor is included in the home page).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the icon picker and checking how the React Icons Box Icons library is imported into the website bundle. Compare the three proposed approaches and inspect why the Tina editor bundle appears on the home page; done means reducing the unnecessary bundle size with an agreed approach.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs, react
- Domain
- frontend, performance, web-dev
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100