title: referencing or hosting javascript on HTTP/2
body: <p>For a modern website, what is the best way to load javascript libraries (in my case jQuery and D3)?</p>
  
  <p>Let assume:</p>
  
  <ul>
  <li>everyone accesses the site using HTTP/2</li>
  <li>self hosting means hosting on GitHub (i.e. for <a href="https://bl.ocks.org/" rel="nofollow noreferrer">bl.ocks</a>)</li>
  <li>referencing could mean:
  
  <ul>
  <li><a href="https://developers.google.com/speed/libraries/" rel="nofollow noreferrer">Google</a> for jQuery and <a href="https://cdnjs.com/" rel="nofollow noreferrer">cdnjs</a> or <a href="https://d3js.org/d3.v4.min.js" rel="nofollow noreferrer">D3.org</a> for D3</li>
  <li>cdnjs for jQuery and D3</li>
  <li>cdnjs for jQuery and D3.org for D3</li>
  </ul></li>
  </ul>
  
  <p>Since everyone is using HTTP/2, the <a href="https://stackoverflow.com/questions/3832446/benefits-vs-pitfalls-of-hosting-jquery-locally">parallelism argument</a> no long applies (right?).</p>
  
  <p>In order to maximize the chance of a cache hit, I would assume Google is the best bet for jQuery, but they do not provide D3, so I would have to use cdnjs or D3.org for that. Is there an advantage to using cdnjs for both?</p>
  
  <p>EDIT: Let me say about the audience that it is global, so ideally a solution would work well from e.g. Africa and China. The later is important here, because  it blocks access to Google servers, meaning a local fallback would be needed.</p>
  
  <p>The audience is also not limited to D3 designers / bl.ocks users (in case that would be relevant to the cache hit chances).</p>