N°3685 - Front-end performances: Include graph libs. (Raphael, simple_graph, ...) only when necessary

This commit is contained in:
Molkobain
2021-09-10 17:11:52 +02:00
parent e4d7bf7dbb
commit bac584a6b4
4 changed files with 14 additions and 8 deletions

View File

@@ -43,6 +43,9 @@ class iTopWebPage extends NiceWebPage implements iTabbedPage
// - DashletGroupBy & other specific places
'js/d3.js',
'js/c3.js',
// - DisplayableGraph, impact analysis
'js/raphael-min.js',
'js/jquery.mousewheel.js',
// Deprecated files
'js/date.js',
@@ -189,8 +192,6 @@ class iTopWebPage extends NiceWebPage implements iTabbedPage
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/property_field.js');
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/icon_select.js');
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/ajaxfileupload.js');
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/raphael-min.js');
}
/**