We have a plugin created with Atlassian SDK in JIRA. We have a simple vm template getting rendered on plugin configuration page with its associated CSS and JS files. It observed that while rendering this VM on page, unnecessary calls are going to load batch.css, batch.js, shortcut, logo, image etc, etc.
Not sure why they are loading on page. Is it the default JIRA behaviour. I want to restrict those CSS and JS loading.
On top of the JS and CSS files you have added, JIRA will be a loading a lot of web resources used by the various headers, footers, navigation bars etc on the JIRA pages. Most of those resources are loaded based on web resource contexts and a lot of them will load on all pages.
Some the plugins will also add resources in to the general context, even if they won't be used by your template or the screen you are developing. It might be safe not to block them to avoid breaking functionality on other pages.
Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!
Help us plant more trees
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.