Looking for OrbitControls.js & three.min.js
What do you mean by “no hotlinking”? You would download those from Github, typically.
If you need a CDN, you can link to three.min.js from here:
https://cdnjs.cloudflare.com/ajax/libs/three.js/101/three.min.js
I’m not aware of a CDN that has OrbitControls other than github, which you can access here:
https://threejs.org/examples/js/controls/OrbitControls.js
However, you need to take care with this one since it will get immediately updated whenever there is a new three.js release.
Thank You…
@donmccurdy, It means stealing bandwidth, using your server resources without permission,
this may not be related to three.js in any way? I remember seeing this term in the 90s.
I see, you’re looking for a CDN that is (intentionally) hosting them for others to use. In that case I would suggest something locked to a version number, like the Cloudflare link above, or:
- https://cdn.jsdelivr.net/npm/three@0.101.1/build/three.min.js
- https://cdn.jsdelivr.net/npm/three@0.101.1/examples/js/controls/OrbitControls.js
You can find other files here: https://www.jsdelivr.com/package/npm/three
@donmccurdy. Thank you, good to know.
Why jsdelivr contains r117.1 but CDN - r99?
https://www.jsdelivr.com/package/npm/three
https://cdnjs.com/libraries/three.js/
cdnjs has a forum, you could ask them why they have not updated it.