title: Uncaught ReferenceError: Papa is not defined. Loaded in from cdn in header
body: <p>Below is the HTML. I load in the cdn hosted lib for PapaParse in the header. But when I run my JavaScript file and it runs the function where I call <code>Papa.unparse(data);</code> It throws an error saying that Papa is not defined. So
  I am a bit confused on what the exact issue here is because I clearly have loaded it into the html and before my JavaScript scripts are loaded as well.
  Help is much appreciated.</p>
  
  <p><strong>Edit:</strong> I have fixed the issue. The problem was the cdn itself. I assume the links are broken or the file is not on their server. It may also be that specific version, I suspect this is most likely the cause. Tested same version with cdnjs still does not work. Weird.</p>
  
  <pre><code>&lt;script src="https://fastcdn.org/Papa-Parse/4.1.2/papaparse.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>This version and cdn seems to work. Thanks!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>   
  
   function makeThatExcelFilePapa(data, title) {
          var csv = Papa.unparse(data);
          return csv;
      }
  // Make sure the DOM is loaded before trying to add listeners
  window.onload = function () {
      // Set dropdown list for Brand to be empty on start
      document.getElementById("dealerSearchForm").elements["brand"].selectedIndex = -1;
  
      // Call submit method when submit button is clicked
      var submitButton = this.document.getElementById("submitButton");
      $(submitButton).on('click', getFormData);
      $(exportToExcel).on('click', callJSONConverter);
  }
  
  var items;
  function callJSONConverter() {
      //JSONToCSVConvertor(JSON.stringify(items), "Results for " + dealerName, true);
      makeThatExcelFilePapa(items, "Results for " + dealerName);
      return false;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>   
  
   &lt;!DOCTYPE html&gt;
      &lt;html&gt;
  
      &lt;head&gt;
          &lt;meta charset="UTF-8"&gt;
          &lt;title&gt;Dealer Tab&lt;/title&gt;
          &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jsgrid/1.5.3/jsgrid.min.css" /&gt;
      &lt;link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jsgrid/1.5.3/jsgrid-theme.min.css" /&gt;
      &lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jsgrid/1.5.3/jsgrid.min.js"&gt;&lt;/script&gt;
      &lt;script type="test/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.6.0/papaparse.min.js"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" href='cnh_dealer_tab.css'&gt;
          
          
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;div class="form-style"&gt;
              &lt;h3&gt;Find Dealer:&lt;/h3&gt;
              &lt;form id="dealerSearchForm" method="POST" action="cnh_dealer_tab.html"&gt;
                      
                      Brand:
                      &lt;select name="Brand" id="brand" required&gt;
                          &lt;option value="NHAG"&gt;NHAG&lt;/option&gt;
                          &lt;option value="NHCE"&gt;NHCE&lt;/option&gt;
                          &lt;option value="CSCE"&gt;CSCE&lt;/option&gt;
                          &lt;option value="CSAG"&gt;CSAG&lt;/option&gt;
                      &lt;/select&gt;
                      &lt;div id="goRight"&gt;
                          SAP Code:
                      &lt;input type="text" id="sapCode" name="SAPCode" required&gt;
                  &lt;/div&gt;
                  &lt;br&gt;
                  &lt;br&gt; Dealer:
                  &lt;input type="text" id="dealer" value="" readonly&gt;
                  &lt;br&gt;
                  &lt;br&gt;
                  &lt;button id="submitButton"&gt;Submit&lt;/button&gt;
                  &lt;input type="reset" name="reset"&gt;
                  &lt;button id="goToCountyTab"&gt;Go to County Tab&lt;/button&gt;
                  &lt;button id="exportToExcel"&gt;Export to Excel&lt;/button&gt;
  
              &lt;/form&gt;
          &lt;/div&gt;
          &lt;div id="jsGrid" class="form-style"&gt;
              &lt;span class="grid"&gt;
                  &lt;script type="text/javascript" src='cnh_grid_data'&gt;&lt;/script&gt;
                  &lt;script type="text/javascript" src='cnh_ssm_assignments'&gt;&lt;/script&gt;
              &lt;/span&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  
      &lt;/html&gt;</code></pre>
  </div>
  </div>
  
  Thanks.</p>