shx-3d-render

main
Jan Umbach 2024-06-13 20:14:26 +02:00
parent 7482a3019d
commit 5f808f0c30
1 changed files with 3 additions and 0 deletions

View File

@ -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');