https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40788 --- Comment #8 from David Cook <dcook@prosentient.com.au> --- Another thought... at the moment IntranetUserJS is loaded via <script></script> Check out my comment here: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706#c12 If we had the ability to load IntranetUserJs snippets with different attributes, that changes things too. For instance, you could change the snippet to also be a "module", and then things can get interesting, as IntranetUserJS gets run *after* islands.esm in terms of DOM order. That said, I think the imports are done asynchronously so using something event-driven would be better. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.