title: How do I load GLTFLoader from a cdn THREE.js
body: <p>I'm having some issues figuring out how to get GLTFLoader to work in THREE.js. I don't understand how to use a cdn site to host the file. I have tried using links from examples around the web but that hasn't done the job for me. I read on another post that the GLTFLoader file had to be the same versions the core THREE file I'm using (r121).</p>
  <p>I thought I could go to mrdoob github (not familiar with how to use github) and click raw file then use that link on a site like githack to generate a cdn link and add it as a script in my html, or import it into my js file, but that didn't work.</p>
  <p>If that is the way to do it then it's not working. In my code when I type in:</p>
  <pre><code>let loader = new GLTFLoader();  //from the docs
  
  //or
  
  let loader = new THREE.GLTFLoader(); //not from the docs
  </code></pre>
  <p>I get one or the other of these two errors:
  Uncaught ReferenceError: GLTFLoader is not defined
  or
  Uncaught TypeError: THREE.GLTFLoader is not a constructor</p>
  <p>I have been at this for hours and haven't a clue what to do.</p>
  <p>CodePen <a href="https://codepen.io/jfirestorm44/pen/RwRPJda?editors=0010" rel="noreferrer">https://codepen.io/jfirestorm44/pen/RwRPJda?editors=0010</a></p>
  <p>The tutorial I'm following if it matters:
  <a href="https://tympanus.net/codrops/2019/10/14/how-to-create-an-interactive-3d-character-with-three-js/" rel="noreferrer">https://tympanus.net/codrops/2019/10/14/how-to-create-an-interactive-3d-character-with-three-js/</a></p>