title: JQuery issue "TypeError: $.getJSON is not a function"
body: <p>I've got this piece of code:</p>
  
  <pre><code>$(document).ready(function () {
      $.getJSON('http://localhost:5000/', function (response) {
          console.log(response);
      });
  });
  </code></pre>
  
  <p>localhost:5000 is a <code>flask/python</code> script that returns a <code>json</code> like:</p>
  
  <pre><code>{
    "data": [
      0, 
      0, 
      0, 
  </code></pre>
  
  <p>And I'm getting:</p>
  
  <pre><code>$.getJSON is not a function TypeError: $.getJSON is not a function
  </code></pre>
  
  <p>Any tips where I can start untangling the whoolball?</p>
  
  <p>Thanks!</p>
  
  <p>Edit:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
      &lt;script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"&gt;&lt;/script&gt;
      &lt;script src="lib/main.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p><code>lib/main.js</code> is where the <code>document.ready</code> is located.</p>
  
  <p>Thanks!</p>