Most economical page decorator?


My app is running outside of the Jira GUI and I am using decorators in order to load my own web resources (unfortunately my web resources will not get injected unless I am using a decorator that is other than “none”)

However the standard Atlassian “blank” and “atl.popup” decorators inject a lot of JS and CSS that I don’t need, up to 1MB of resources. Is there any other method I can use to get my web resources rendered?

I am using pageBuilderService via Servlet


If you’re already using pageBuilderService then you’re almost there…

StringWriter htmlTags = new StringWriter();
this.pageBuilderService.assembler().assembled().drainIncludedResources().writeHtmlTags( htmlTags, UrlMode.RELATIVE );
Map<String, Object> context = new HashMap<>();
 context.put("tagsHtml", htmlTags);

Then just place the tagsHtml in your template…

1 Like

Hi Daniel,

thank you. This helped

It is still including some resources that I don’t need (jQuery, backbone, soyutils) but the amount of resources was reduced.

Here is my template

    <meta name="decorator" content="none">
            content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no"


<div id="app"></div>