summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-06-17 00:20:48 +0200
committerAndreas Gohr <andi@splitbrain.org>2011-06-17 01:41:51 +0200
commit809d3ba53bea8b34155cb8d009d7fa4b8a7bbdaf (patch)
tree51546fafa7cf56efec7d677a7f34e7e364652c8c /conf
parent571b9b92283065f5bb5dd91a417b89b047efcc6b (diff)
downloadrpg-809d3ba53bea8b34155cb8d009d7fa4b8a7bbdaf.tar.gz
rpg-809d3ba53bea8b34155cb8d009d7fa4b8a7bbdaf.tar.bz2
Use data uris for small image files in CSS
This patch adds a new config option 'cssdatauri'. When enabled, the CSS patcher will automatically convert all occurances of small (<600 byte) PNG and GIF images in the CSS to embedded, base64 encoded data uris. This reduces the number of needed HTTP requests and avoids the HTTP header overhead.
Diffstat (limited to 'conf')
-rw-r--r--conf/dokuwiki.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/dokuwiki.php b/conf/dokuwiki.php
index e90e4fc23..67edc46a6 100644
--- a/conf/dokuwiki.php
+++ b/conf/dokuwiki.php
@@ -108,6 +108,7 @@ $conf['subscribers'] = 0; //enable change notice subscription sup
$conf['subscribe_time'] = 24*60*60; //Time after which digests / lists are sent (in sec, default 1 day)
//Should be smaller than the time specified in recent_days
$conf['compress'] = 1; //Strip whitespaces and comments from Styles and JavaScript? 1|0
+$conf['cssdatauri'] = 1; //Embed small images into CSS, won't work on IE<8 1|0
$conf['hidepages'] = ''; //Regexp for pages to be skipped from RSS, Search and Recent Changes
$conf['send404'] = 0; //Send a HTTP 404 status for non existing pages?
$conf['sitemap'] = 0; //Create a google sitemap? How often? In days.