brave-ui
brave-ui copied to clipboard
Large SVGs in Rewards should be external asset
There are some large ~50kb assets that are included in the bundle. These would benefit from being external assets to consuming bundle sizes (especially valid on Android).
Inline SVGs are very useful when they are component-like, or for some other reason need to be styled with CSS. These assets seem like graphics and therefore do not need to be included. If they did, then I would suggest using import()
or React.lazy()
syntax so that they are contained in a different JS file.