shx-3d-render
parent
7482a3019d
commit
5f808f0c30
|
@ -103,9 +103,12 @@
|
|||
let script = document.createElement('script');
|
||||
script.src = "{{ 'three.module.min.js' | asset_url }}";
|
||||
script.id = 'threejs-script';
|
||||
script.type = "module";
|
||||
document.head.appendChild(script);
|
||||
|
||||
script.addEventListener('load', () => {
|
||||
import * as THREE from 'three';
|
||||
|
||||
threeJSloaded = true;
|
||||
console.log('threejs loaded');
|
||||
|
||||
|
|
Loading…
Reference in New Issue