Page MenuHomePhabricator

Minify SVG fonts served by WebFonts
Closed, InvalidPublic

Description

https://developers.google.com/pagespeed/#url=https_3A_2F_2Fwww.mediawiki.org_2F&mobile=false&rule=EnableGzipCompression

Compressing https://bits.wikimedia.org/w/extensions-1.19/WebFonts/fonts/Khmr/KhmerOSbattambang.svg?version=1.10&20111213... could save 228.2KiB (82% reduction).

I'm guessing it will be a similar story for the other 15 SVG fonts that can potentially be served...

Will certainly help for people on slow connections if we can remove a large chunk of the served data


Version: unspecified
Severity: enhancement

Details

Reference
bz34810

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:12 AM
bzimport set Reference to bz34810.
bzimport added a subscriber: Unknown Object (MLST).

Logged bug 34812 as a way to dynamically do it

foo.min.svg esk files could be created in the meanwhile...

Simplest way to accomplish this should be to configure the web servers to do transparent gzip compression on the backend Apache web servers.

Varnish on bits.wikimedia.org's proxy layer should transfer it through just fine, as long as the Vary: Accept-Encoding is added (which it *ought* to be).

We might already have gzip configured for some other file types, so check the current configurations.

SVG fonts does not work for complex scripts. There were some svg files in the extension, I have removed them. We have only one svg file in the extension, it is SVG version of Ubuntu font

Santhosh, is this request still relevant?

In the latest version of the extension, there are not SVG files. Closing this bug.