Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I turn off batching of resources in my plugin?

David Pinn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 10, 2012

I've tried adding a parameter to the resource declarations, like this:

<web-resource key="rendezvousStuff" name="Rendezvous resources">
        <disable-minification>true</disable-minification>
        <resource type="download" name="rendezvous/" location="rendezvous">
            <param name="batch" value="false"/>
        </resource>
    </web-resource>

That didn't work. My resources are still being bundled into context batches.

During development, I achieve the desired un-batched-ness by merely setting atlassian.dev.mode=true, but in production mode, everything seems to be batched regardless of the "batch" parameter. What gives?

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Alejandro Conde Carrillo
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 10, 2012
David Pinn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 10, 2012

Thanks Alex. I believe that I've followed those instructions in relation to the "batch" parameter. Of course, I won't have control over the setting of system properties in my customer's Stash instances, so setting plugin.webresource.batching.off=true isn't an option.

0 votes
David Pinn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 11, 2012

Hi Jason. I want to programmatically control when certain JavaScript files are downloaded.

0 votes
jhinch (Atlassian)
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 11, 2012

Out of interest, why do you want to do this?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events