Hi,
I want to include three.js in my component but have problems loading it.
When I use this on a default html page (non adapt) it works fine:
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js';
head.appendChild(script);
The THREE object is then available.
When I use this in my adapt component or in the dev console after the adapt course has loaded, it is not available. Surely this is because of the way it gets loaded. Maybe there is a conflict with the adapt mechanisms to load external js files / modules, but I am not so deep into it and don't know what the right way would be. Maybe someone can give me a hint?