Page MenuHomePhabricator

Remove vendor prefixes from linear-gradient SVG/PNG fallback hack
Closed, ResolvedPublic

Description

Embedding every SVG twice results in filesize bloat (despite gzip) and adds CPU load to under powered devices.

Very few browsers support linear-gradient only with a vendor prefix (http://caniuse.com/#search=linear-gradient), mainly old versions of Android. For desktop it is 1 or 2 percent. I we remove the vendor prefixes, all these browsers will gracefully fall back to PNG icons.

Event Timeline

Esanders created this task.Nov 17 2015, 2:31 AM
Esanders updated the task description. (Show Details)
Esanders raised the priority of this task from to Needs Triage.
Esanders added a subscriber: Esanders.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptNov 17 2015, 2:31 AM

Change 253539 had a related patch set uploaded (by Esanders):
Remove vendor prefix support for SVG embedding

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

Esanders set Security to None.

Change 253539 merged by jenkins-bot:
Remove vendor prefix support for SVG embedding

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

Aren't the phones having high dpi screens the ones which benefit from SVG files the most?

Change 253578 had a related patch set uploaded (by Ori.livneh):
Remove vendor prefix support for SVG embedding

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

Change 253578 merged by Ori.livneh:
Remove vendor prefix support for SVG embedding

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

Jdforrester-WMF closed this task as Resolved.Nov 17 2015, 11:47 PM
Jdforrester-WMF claimed this task.