Streaming live at 10am (PST)

Three.js intergration using CDN

Hi, I would like to load a three.js scene into my Webflow project. I already have the three.js scene running locally using NPM without error, however, now I’m trying to upload the scene/object using a CDN.

Successful example (my project is much simpler because it does not have a custom shader):

I try to use cloudflare with unpkg as the above example, but the only thing that works is the dat.gui. The error says ‘threejs:87 Uncaught ReferenceError: GLTFLoader is not defined at threejs:87’.

I have been looking at this for hours, maybe the version that I’m using is wrong, does anyone know how to load three.js project to a CDN and integrate into Webflow?

<script type="text/javascript" src='https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js%27%3E</script> <script type="text/javascript" src='https://unpkg.com/three@0.128.0/examples/js/controls/OrbitControls.js%27%3E <script type="text/javascript" src='https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.7.7/dat.gui.min.js%27%3E</script> <script type="text/javascript" src='https://unpkg.com/three@0.128.0/examples/js/loaders/GLTFLoader.js%27%3E

Here is my site Read-Only: LINK
(how to share your site Read-Only link)