'batch.js' loaded as part of the Dashboard page is huge and makes the page slow to load

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

If your Dashboard page loads slower than expected and you could see from HAR file analysis that there is a request that loads a very large (multiple tens of MB) 'batch.js' file, you can use Jira's Safe Mode to determine if this is caused by one or more specific apps.

Environment

Jira Data Center (any version).

Diagnosis

You see a 'batch.js' file load of many tens of MB in a HAR file for a Dashboard load.

Cause

'batch.js' is a Javascript file containing a number of different Javascripts bundled together to keep the number of requests needed for the page to a minimum. The bundle includes both native Jira scripts and scripts provided by installed apps, so if there is a lot of Javascript needed for certain functionality loaded with the Dashboard, this 'batch.js' can be large.

(Other causes are also possible. If you are not sure about the cause you can contact Atlassian Support for assistance with this.)

Solution

To save bandwidth the Javascript in 'batch.js' has been minified, so it is not possible to derive from the code inside the bundle where each part originated from. But you can find out if the large size is caused by one or more specific apps by temporarily putting Jira intoSafe Modewhich disables all apps not crucial for core Jira functionality. See the pageDisabling and enabling appsfor instructions on how to do this.

If the 'batch.js' is then smaller inSafe Mode, then you can try to enable apps one by one until you notice that the size increases to find the app behind it. Note that it may be a combination of multiple apps that add up to the full size.

If you have any questions about what the particular Javascript does for a particular app, please contact the app vendor's support directly.

Updated on February 24, 2025

Still need help?

The Atlassian Community is here for you.