Ahoy friendly package devs! I just found out that ...
# package-development
j
Ahoy friendly package devs! I just found out that assetService.LoadJs doesn't support modules 😢 How are y'all lazy loading JS in the backoffice?
d
Maybe not the answer you were looking for, but my javascript has never gotten large enough to make it worthwhile to lazy load anything. I do use assetsService to lazily import non angular js libraries, like google charts for example.
l
I've only lazy loaded regular (non-module) JS libs, using
assetsService.load()
. Doesn't help, sorry.
j
No worries, maybe I'm the first to try 🤷 - I raised an issue, will look at fixing it if I find the time. In the meantime I guess I'll just create my own script tag and append to the DOM.
It looks like the underlying library is from 2011, so before attributes on Script tags become commonplace.
4 Views