6.0.0-alpha10
5/14/25

Search Results: 144 of 151 [ <<First <Prev Next> Last>> ] [ Return to Search Results ]


[#14871] Always embed image data in compressed CSS stylesheets
Summary Always embed image data in compressed CSS stylesheets
Queue Horde Framework Packages
Type Enhancement
State New
Priority 1. Low
Owners
Requester build+horde (at) de-korte (dot) org
Created 11/08/2018 (2379 days ago)
Due
Updated 11/08/2018 (2379 days ago)
Assigned
Resolved
Milestone
Patch Yes

History
11/08/2018 06:51:46 PM build+horde (at) de-korte (dot) org Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Always embed image data in compressed CSS stylesheets
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
New Attachment: Horde_Themes_Css_Compress.patch Download
Reply to this comment
It is possible to set $conf[nobase64_img] 'true' to disable embedding 
image data. For dynamically generated content, this may (slightly) 
reduce size, as the image files can be cached in the browser, rather 
than being embedded (and retransmitted) in every refresh of the page.

This advantage is not present when in the compressed stylesheets 
generated by Horde_Themes_Css_Compress, since they do not contain 
dynamic content and therefor can/will be cached in the client browser 
anyway. There is nothing to gain by not embedding the image data. In 
this case, *not* embedding image data (when possible), is actually 
detrimental to the total download size, as each image file will need 
to be downloaded separately with its own header appended (not to speak 
of the additional connections to download these files).

Therefor this patch embeds images in compressed stylesheets regardless 
of the $conf[nobase64_img] setting and only make it only depend on the 
capabilities of the client browser requesting it.

Saved Queries