Closed leoplct closed 4 months ago
hey @leoplct You can use these code to import only the icons you need and reduce the impact on performance, you can use the @import
rule in CSS to import specific CSS files for the icons you want to use.
hey @leoplct You can use these code to import only the icons you need and reduce the impact on performance, you can use the
@import
rule in CSS to import specific CSS files for the icons you want to use.
Still not performatic. Importing this way you'll import all thin-rounded
icons for example, and I believe that no one use all icons in a project. Thats the point.
It would be nice to have the SVG files in the repository, that way we could be able to import only icons we need
Hey @leoplct we don't have that functionality at the moment. We may implement it in the future :space_invader: . Thanks for the input :raised_hands: .
I have this to include the whole styles
but in my code, I only use a few icons like
this negatively impacts our performance and lighthouse because we have lots of unused CSS. How can I import only a few icons?