System CSS Resources and how they are "batched" up and served
Asked by Matthew J. Horn:

Does anyone have any information about how the system CSS resources are batched up and included in the output of Confluence?

I suspect they are some sort of combination of the various (indeed, over a hundred) CSS files that are in the server's includes/CSS directory. What I am really looking to find out, though, is how the path to them is generated and if it's possible to configure it somehow.

Here's the source of my Confluence pages:

```
&lt;!-- include system css resources --&gt;    &lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/74/_/download/superbatch/css/batch.css" media="all"&gt;&lt;!--[if lt IE 9]&gt;&lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/74/_/download/superbatch/css/batch.css?conditionalComment=lt+IE+9" media="all"&gt;&lt;![endif]--&gt;&lt;!--[if IE 9]&gt;&lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/74/_/download/superbatch/css/batch.css?conditionalComment=IE+9" media="all"&gt;&lt;![endif]--&gt;&lt;!--[if lte IE 9]&gt;&lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/74/_/download/superbatch/css/batch.css?conditionalComment=lte+IE+9" media="all"&gt;&lt;![endif]--&gt;&lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/74/_/download/superbatch/css/batch.css?media=print" media="print"&gt;&lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/6b2b2920754c128068fcb8ecd4257979/_/download/contextbatch/css/page/batch.css" media="all"&gt;&lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/8b2de37e35c1b0ebc4cb87df5ac34feb/_/download/contextbatch/css/plugin.quick.comment.pre/batch.css" media="all"&gt;&lt;!--[if lt IE 9]&gt;&lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/d576eafece8d844c99688982ab89d7a8/_/download/contextbatch/css/viewcontent,main/batch.css?conditionalComment=lt+IE+9" media="all"&gt;&lt;![endif]--&gt;&lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/d576eafece8d844c99688982ab89d7a8/_/download/contextbatch/css/viewcontent,main/batch.css" media="all"&gt;&lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/8d5ca2739e2ee681538596648a9970f8/_/download/contextbatch/css/atl.general/batch.css" media="all"&gt;&lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/19/_/styles/colors.css?spaceKey=mainmain" media="all"&gt;&lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/1.0/_/download/resources/com.atlassian.confluence.themes.default:styles/default-theme.css" media="all"&gt;&lt;link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/19/_/styles/custom.css?spaceKey=mainmain" media="all"&gt;&lt;!-- end system css resources --&gt;
```


Answers:
author: Amalia
body: I hope this link is useful :)

<https://developer.atlassian.com/display/CONFDEV/Web+Resource+Module#WebResourceModule-BatchedMode>

According to our developer, Confluence's super batch is configured manually in the *pluginServiceContext.xml* file in the *resourceBatchingConfiguration* bean.

```
&lt;bean id="resourceBatchingConfiguration"          class="com.atlassian.confluence.plugin.webresource.ConfluenceResourceBatchingConfiguration"&gt;        &lt;constructor-arg index="0"&gt;            &lt;bean class="java.util.ArrayList"&gt;                &lt;constructor-arg index="0"&gt;                    &lt;list&gt;                        &lt;!-- aui --&gt;                        &lt;value&gt;com.atlassian.auiplugin:ajs&lt;/value&gt;                        &lt;value&gt;com.atlassian.auiplugin:jquery-compatibility&lt;/value&gt;                        &lt;!-- just in case --&gt;                        &lt;value&gt;confluence.web.resources:ajs&lt;/value&gt;                        &lt;value&gt;confluence.web.resources:jquery&lt;/value&gt;                        &lt;value&gt;confluence.web.resources:raphael&lt;/value&gt;                        &lt;!-- confluence components --&gt;                        &lt;value&gt;com.atlassian.confluence.restplugin:confluence-rest&lt;/value&gt;                        &lt;value&gt;confluence.web.components:core&lt;/value&gt;                        &lt;value&gt;confluence.web.components:property-panel&lt;/value&gt;....
```

comments: author: Matthew J. Horn
body: It does, thanks! This page mentions scriptaculous, which I think is deprecated, but otherwise it contains some useful information. I was not able to uncover this page in my googling, so hopefully a few links to it will give it some juice.


Tags: bulk-edit

css

resource