Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Apparently you can embed GZipped URIs? We should figure out how to do this!
Using http://placekitten.com/1600/1000 as an example:
JPG: 381973 bytes
Data URI: 441920 bytes
GZip'd URI: 334199 bytes
So switching to a Data URI is a 15% increase (Wikipedia claims it's 30% on average). Gzipping that actually makes it about 12% smaller than the original.
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedGzipping happens either when Drupal serves a cached (and gzipped) page or when the web server serves the page and compresses it through mod_gzip. It's not something we can either promote or inhibit with this module.
It should however be documented that server-side gzip is an important factor for this optimization.