Page MenuHomePhabricator

CSSMin: Embed non-binary data URIs using plain text instead of base64
Closed, ResolvedPublic

Description

Bartosz suggested that we look into using data URLs without base 64. An example is http://jsfiddle.net/SJjJb/1332/ , a text-based one for SVG.

Some escaping is practically necessary (e.g. at least %23 for #). It is not clear how much is required by either browser compatibility or the standard.

He mentioned http://software.hixie.ch/utilities/cgi/data/data as a library for this as well.

If the required escaping ends up inflating it (e.g. if we have to escape < and >), so we need to calculate (either in general, or in a case-by-case basis), which is the winner (base 64 or escaped text).


Version: 1.24rc
Severity: enhancement

Details

Reference
bz67341

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:39 AM
bzimport set Reference to bz67341.

Change 161091 had a related patch set uploaded by Bartosz Dziewoński:
CSSMin: Do not base64-encode non-binary files when embedding

https://gerrit.wikimedia.org/r/161091

Change 161091 merged by jenkins-bot:
CSSMin: Do not base64-encode non-binary files when embedding

https://gerrit.wikimedia.org/r/161091