create a require.js module with most of the dependencies included (jquery, angular, angular modules, ..., has a limited benefits because most of the files we use are not part of those dependencies)
create a module for each interfaces (admin, cockpit and tasklist) and 1 module for the common features (limited benefits because ngDefine interferes)
use require.js + text plugin to load the templates (and compile the templates into 1 file per interface, this would have a greater benefits)
A bit less easy picks:
remove ngDefine and use require.js configuration correctly (would allow to continue the work on a clean base, optimize all interfaces into a very small amount of files)
Valentin
added a comment - Easy picks:
create a require.js module with most of the dependencies included (jquery, angular, angular modules, ..., has a limited benefits because most of the files we use are not part of those dependencies)
create a module for each interfaces (admin, cockpit and tasklist) and 1 module for the common features (limited benefits because ngDefine interferes)
use require.js + text plugin to load the templates (and compile the templates into 1 file per interface, this would have a greater benefits)
A bit less easy picks:
remove ngDefine and use require.js configuration correctly (would allow to continue the work on a clean base, optimize all interfaces into a very small amount of files)
Easy picks:
A bit less easy picks: