Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
BTW, right now I'm doing this using the beforeBodyClose and addHtmlHeader hooks.
Because I need to load one after another and this is the only way I found.
https://github.com/Dolibarr/dolibarr/blob/13ec815864bfefd4c435098ff9b6aecd6da7a5ee/htdocs/main.inc.php#L2178
It would be nice to be able to add global JS as
type="module"
Maybe by having a 'js_module' in
$this->module_parts
or by starting the path withmodule:
Maybe separate between js that goes in the head and js that goes at the end of the body?