# Orbit Controls Package not Loading 

**URL:** <https://discourse.threejs.org/t/orbit-controls-package-not-loading/42904>\
**Category:** Questions\
**Tags:** orbit-controls\
**Created:** [September 25, 2022, 7:54pm UTC](https://discourse.threejs.org/t/orbit-controls-package-not-loading/42904 "2022-09-25T19:54:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamzah\_Al\_Ani](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hamzah_al_ani/32/29794_2.png) [@Hamzah\_Al\_Ani](https://discourse.threejs.org/u/Hamzah_Al_Ani)\
**Post date:** [September 25, 2022, 7:54pm UTC](https://discourse.threejs.org/t/orbit-controls-package-not-loading/42904/1 "2022-09-25T19:54:57Z")

</div>

I’m installing threeJS from CDN.

When trying to add the orbit controls using the second method (in the image below), my project seems to fail to load the package.

 ![Screen Shot 2022-09-25 at 3.22.42 PM](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/6/4/646f4e3b95cf0b9caf0ad5e7b5c47e4bc8f96a48.jpeg)

The console error goes as follows:

> Failed to load resource: the server responded with a status of 404 ()

Even when visitng the link, “[https://unpkg.com/three@/examples/jsm/controls/OrbitControls.js](https://unpkg.com/three@%3Cversion%3E/examples/jsm/controls/OrbitControls.js),” I find nothing, so I wanted to ask if this was an issue from my side or is this just the wrong link?

Thanks for reading, and sorry if anything I say sounds confusing, I’m not very expierenced with threeJS 😅

---

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [September 25, 2022, 7:55pm UTC](https://discourse.threejs.org/t/orbit-controls-package-not-loading/42904/2 "2022-09-25T19:55:28Z")

</div>

Hi!  
Try this link to the latest revision: [https://unpkg.com/three@0.144.0/examples/jsm/controls/OrbitControls.js](https://unpkg.com/three@0.144.0/examples/jsm/controls/OrbitControls.js)

---

<div class="post-metadata">

**Author:** ![Hamzah\_Al\_Ani](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hamzah_al_ani/32/29794_2.png) [@Hamzah\_Al\_Ani](https://discourse.threejs.org/u/Hamzah_Al_Ani)\
**Post date:** [September 25, 2022, 11:20pm UTC](https://discourse.threejs.org/t/orbit-controls-package-not-loading/42904/3 "2022-09-25T23:20:38Z")

</div>

Oh, looks like I needed to specify the version number, thanks!

Still didn’t work, I think the issue is with my code.

I also realized that I accessed three js script through this line

```javascript
<script src="https://threejs.org/build/three.js">

```

When I switched to the [method for CDN](https://threejs.org/docs/index.html#manual/en/introduction/Installation), three js didn’t work for me.  
I’m using threejs with repl.it, so you can see what I have here: [https://threejs.hamzahal.repl.co/](https://threejs.hamzahal.repl.co/)
