Forum Discussion
MartinGregson
3 years agoCommunity Member
JavaScript libaries
Is there a way to implement external or additional JavaScript libraries into storyline?
If so, how?
I require some functionality within storyline not given within the current implementation. To ...
JohnCooper-be3c
3 years agoCommunity Member
Hi Math, Phil
Thanks for the responses both you guys have way better JavaScript skills than me - but I'm still not sure why I wouldn't use the method I'm suggesting:
- You don't need to amend anything in the exported SCORM or drop any files anywhere in my solution either.
- I generally pick up the JavaScript libraries I need dynamically from one of the main library repositories like pkg or NPM or GItHub. I don't think they will be going anywhere soon - a lot of code would fail worldwide if they did!
- If I'm worried that the library might change and amendments could affect my code, then I would include the version number in the url - otherwise I pick up the latest version of the library.
It just seems so much simpler - assuming that there is an ESM version of the library available - obviously not all libraries have converted from cjs to the new standard.