Homec4science

Automatically inline small images using data URIs

Authored by epriestley <git@epriestley.com> on Feb 14 2014, 02:39.

Description

Automatically inline small images using data URIs

Summary: Fixes T3300. Images under 32KB are inlined automatically into CSS using data URIs; larger images remain as normal links. I picked the 32KB threshold arbitrarily, based on it looking roughly like it got reasonable results on core.pkg.css (inlining most of the random stuff, but not inlining all the 2X sprites and such).

Test Plan: Loaded site, browsed around, looked at generated CSS.

Reviewers: btrahan, chad

Reviewed By: chad

CC: aran

Maniphest Tasks: T3300

Differential Revision: https://secure.phabricator.com/D8225

Details

Committed
epriestley <git@epriestley.com>Feb 14 2014, 02:39
Pushed
aubortJan 31 2017, 17:16
Parents
rPHe88d0f9c42d4: Merge Differential comment migration to ApplicationTransactions
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH005d194cd28d: Automatically inline small images using data URIs (authored by epriestley <git@epriestley.com>).Feb 14 2014, 02:39