CDNs for Three.js?

I’m new to web development and Three.js. I need to embed all my JavaScript code inside my HTML file without using separate .js files. Currently, I’m using module import statements for Three.js, OrbitControls, and GLTFLoader, in a seperate .js file, but when I try to move the entire code inside the HTML, and add CDN’s Like so: Vidmate

<!-- Include Three.js core library -->
    <script src=""></script>
<!-- Include GLTFLoader module for loading 3D models in glTF format -->
    <script src=""></script>
<!-- Include OrbitControls module for interactive camera controls -->
    <script src=""></script>

The script is not loading the gltf. Are the CDNs wrong or is it simply not possible? If yes, Alternatively is there a workaround to this?

How are you loading your glTF asset? Maybe the path is wrong and you are getting a HTTP 404.

Are there any error messages in the JS console?

In any case, including modules via <script> tag requires the attribute type="module" as described here:

Applying the module to your HTML