Skip to content

inline svg: base64 > ASCII85 #17476

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

Closed
wants to merge 1 commit into from

Conversation

efender
Copy link

@efender efender commented Sep 4, 2015

ASCII significantly reduces size.
Preview - http://sassmeister.com/gist/031303db9b45b7ed1a24

plain gzip
base64 (original) 4428 bytes 1573 bytes
ASCII85 1656 bytes 632 bytes

1441265193093

@cvrebert cvrebert added this to the v4.0.0-alpha.2 milestone Sep 4, 2015
@XhmikosR
Copy link
Member

@cvrebert: so how about this? It sort of makes sense since those SVGs are small.

@cvrebert
Copy link
Collaborator

SGTM.
CC: @mdo

@slavanga
Copy link

The SVGs need to be URL encoded to support IE 11 and below.
See: https://connect.microsoft.com/IE/feedbackdetail/view/969438/ie-11-support-non-encoded-data-uris

@cvrebert
Copy link
Collaborator

@slavanga Yup, that's why Oleg's code has %3C etc. in it.

See also http://codepen.io/Tigt/post/optimizing-svgs-in-data-uris

@slavanga
Copy link

@cvrebert ah right, I always thought the whole thing has to be encoded. Thank you for the hint.

@mdo
Copy link
Member

mdo commented Nov 13, 2015

Gotta balance this with #17222.

@mdo mdo added the on-hold label Nov 13, 2015
@mdo mdo modified the milestones: v4.0.0-alpha.2, v4.0.0-alpha.3 Dec 8, 2015
@mdo
Copy link
Member

mdo commented Feb 7, 2016

Punting for #17222.

@mdo mdo closed this Feb 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants