N°3685 - Front-end performances: Include BBQ lib. only when necessary

This commit is contained in:
Molkobain
2021-09-10 10:40:12 +02:00
parent 9ac0100d3a
commit d2662e27e1
2 changed files with 3 additions and 1 deletions

View File

@@ -38,6 +38,8 @@ class iTopWebPage extends NiceWebPage implements iTabbedPage
/** @inheritDoc */
protected const COMPATIBILITY_LINKED_SCRIPTS_REL_PATH = [
// Moved files
'js/jquery.ba-bbq.min.js',
'js/d3.js',
'js/c3.js',
@@ -141,7 +143,6 @@ class iTopWebPage extends NiceWebPage implements iTabbedPage
parent::InitializeLinkedScripts();
// TODO 3.0.0: Add only what's necessary
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.ba-bbq.min.js');
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.treeview.js');
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/date.js');
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery-ui-timepicker-addon.js');