title: Extremely simple Ajax code doesn't work
body: <p>The external website spits proper JSON and the code is too simple I don't know what can be wrong. I tried with get and post.</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>$(document).ready(function() {
    $.get("https://www.w3schools.com/jquery/demo_ajax_json.js", function(result) {
      alert(result);
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>