Skip to content

Exempt SVGs from minifying #3652

Answered by peterbe
Ryuno-Ki asked this question in Q&A
Apr 28, 2021 · 4 comments · 6 replies
Discussion options

You must be logged in to vote

I'm against this idea. I think all images should be as small as they can be in the content repo.
If an image is viewed 1,000,000 times by 1,000,000 different people, serving it as optimized as possible really does add up in greater net value. Faster pages. Less electricity use.

The other reason is that unoptimized SVGs add bytes to the git repo itself. Unnecessary bytes. If the SVGs files are larger than they need to, it makes every single git clone slower and uses up more disk space. Today, every single PR on the mdn/content repo runs a (shallow) git clone. So if that blob is bigger than it needs to be it really starts to add up.

I think it would be different if the circumstances were di…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@Ryuno-Ki
Comment options

Comment options

You must be logged in to vote
2 replies
@peterbe
Comment options

@Ryuno-Ki
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Ryuno-Ki
Comment options

You must be logged in to vote
3 replies
@Ryuno-Ki
Comment options

@Ryuno-Ki
Comment options

@hamishwillee
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants