System CSS Resources and how they are "batched" up and served

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:

<!-- include system css resources -->

    <link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/74/_/download/superbatch/css/batch.css" media="all">
<!--[if lt IE 9]>
<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">
<!--[if IE 9]>
<link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/74/_/download/superbatch/css/batch.css?conditionalComment=IE+9" media="all">
<!--[if lte IE 9]>
<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">
<link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/74/_/download/superbatch/css/batch.css?media=print" media="print">
<link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/6b2b2920754c128068fcb8ecd4257979/_/download/contextbatch/css/page/batch.css" media="all">
<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">
<!--[if lt IE 9]>
<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">
<link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/d576eafece8d844c99688982ab89d7a8/_/download/contextbatch/css/viewcontent,main/batch.css" media="all">
<link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/8d5ca2739e2ee681538596648a9970f8/_/download/contextbatch/css/atl.general/batch.css" media="all">
<link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/19/_/styles/colors.css?spaceKey=mainmain" media="all">
<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">
<link type="text/css" rel="stylesheet" href="/confluence/s/en_GB/3280/311/19/_/styles/custom.css?spaceKey=mainmain" media="all">

<!-- end system css resources -->

1 answer

1 accepted

I hope this link is useful :)

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

<bean id="resourceBatchingConfiguration"
        <constructor-arg index="0">
            <bean class="java.util.ArrayList">
                <constructor-arg index="0">
                        <!-- aui -->

                        <!-- just in case -->

                        <!-- confluence components -->

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.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

915 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you