title: How to load external CDN (seats.io) in magento 2?
body: <p>I'm trying to implement <a href="https://docs.seats.io/docs/tutorial-show-the-floor-plan-on-your-page" rel="nofollow noreferrer">https://docs.seats.io/docs/tutorial-show-the-floor-plan-on-your-page</a> in magento 2</p>
  
  <p>I added this code in my homepage</p>
  
  <pre><code>&lt;div id="chart"&gt;&lt;/div&gt;
  &lt;script&gt;
          require(['jquery', 'seatsio'], function($){
              $(document).ready(function(){
                  new seatsio.SeatingChart({
                      divId: 'chart',
                      publicKey: 'xxxx',
                      event: 'xxxx'
                  }).render();
              });
          });
  &lt;/script&gt;
  </code></pre>
  
  <p>In requirejs-config.js I add this to load cdn : </p>
  
  <pre><code>paths: {
      'seatsio': 'https://cdn.seatsio.net/chart'
  </code></pre>
  
  <p>And </p>
  
  <pre><code>shim: {seatsio: ['jquery']}
  </code></pre>
  
  <p>In google chrome devtools the CDN is loaded but I have this error:</p>
  
  <p><strong>Uncaught ReferenceError: seatsio is not defined</strong></p>
  
  <p>Do you know what I did wrong ?</p>