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

Replace complex SVGs for some fide-fed flags #16467

Open
allanjoseph98 opened this issue Nov 23, 2024 · 1 comment
Open

Replace complex SVGs for some fide-fed flags #16467

allanjoseph98 opened this issue Nov 23, 2024 · 1 comment
Labels
non technical Artwork, content, documentation

Comments

@allanjoseph98
Copy link
Member

Sergio has already optimized the SVGs in public/images/fide-fed. However, some SVGs are too complex to be optimised further.
On a fresh load for a broadcast with lots of players, users are downloading almost 200kB of just flags. That's almost as much as our JS. Users should not be downloading such large SVGs for a 15px x 10px img. We should replace them with simpler versions.

There are ~30 flags that are >10kB. For comparison, the PNG flags that are displayed in user profiles (images/flag) are all 2kB or less (except one).

@allanjoseph98 allanjoseph98 added the non technical Artwork, content, documentation label Nov 23, 2024
@SergioGlorias
Copy link
Contributor

note: FIDE flags are also used at lichess.org/fide
There are even some optimizations that can be done by hand
which costs a little more time
But of course it's not easy

and leaving a static image, depending on what is done, can look terrible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non technical Artwork, content, documentation
Projects
None yet
Development

No branches or pull requests

2 participants