View Issue Details

IDProjectCategoryView StatusLast Update
0023446mantisbtperformancepublic2020-08-03 12:38
Reporteratrol Assigned Toatrol  
Status closedResolutionfixed 
Target Version2.8.0Fixed in Version2.8.0 
Summary0023446: Unneeded files delivered if Mantis Graphs plugin is enabled

We do request/deliver chart.bundle-2.1.6.min.js, chart-2.1.6.min.js and MantisGraph.js with each page request if Graphs plugin is enabled.

All in all about 322KB are transferred when accessing Mantis for the first time.
The files are cached, but they are still causing unneeded round trips to the server.

Most of the time the files are not needed as

  • most of the users do not have access to the graphs ($g_view_summary_threshold = MANAGER)
  • most of the pages don't need the scripts (might change in future, e.g. if we should have some graphs on My View page)
TagsNo tags attached.


related to 0027122 resolveddregad 3rd-party plugins cannot use chart.js library bundled with MantisGraph 


Related Changesets

MantisBT: master 5df95f55

2017-10-09 10:36:43


Details Diff
Don't deliver unneeded JavaScript if Graphs plugin is enabled

Fixes 0023446
Affected Issues
mod - plugins/MantisGraph/MantisGraph.php Diff File