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

Smaller css file #74

Closed
alexdpoon opened this issue Jan 10, 2020 · 1 comment
Closed

Smaller css file #74

alexdpoon opened this issue Jan 10, 2020 · 1 comment

Comments

@alexdpoon
Copy link

Component works well, but the css file is 435k. I think the main reason is the base64 images of the country flags. It's making my bundle size too large.

It would be great if you could use unicode country flags instead and get rid of the images -- http://xahlee.info/comp/unicode_flags.html

@alexdpoon alexdpoon changed the title Small css file Smaller css file Jan 10, 2020
@LouisMazel
Copy link
Owner

Hi,

Thanks for your help ! I change the base64 image for a flags.png and it's really lighter now !

432Kb to 120Kb:
Capture d’écran 2020-01-10 à 15 49 24
Capture d’écran 2020-01-10 à 15 49 55

Maybe I can use unicode later to have a better CSS file size. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants