Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why JIRA plugin page making unnecessary CSS, JS and image load calls though they are not used?

SUNIL SABALE
Contributor
January 24, 2019

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.

 

image.png

1 answer

1 vote
Jobin Kuruvilla [Adaptavist]
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.
January 24, 2019

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.

Suggest an answer

Log in or Sign up to answer