title: Detect if URL supports HTTP2 using AJAX request in Chrome Extension?
body: <p>I want the user to be able to enter their website URL into an input box that is part of a Chrome Extension and the Chrome extension will use an AJAX request or something similar to detect and tell the user if the server behind the URL supports sending responses via HTTP2. Is this possible?</p>
  
  <p>Maybe the WebRequest has a way of picking up this information? Or the new Fetch API? Could your request tell the server somehow that only HTTP2 replies are understood? I can't see an obvious way.</p>
  
  <p>I know you can use <code>window.chrome.loadTimes().connectionInfo</code> to get the protocol of the current page but this requires loading the whole page which I don't want to do.</p>
  
  <p>Example URLS:</p>
  
  <p>Delivered over HTTP2: <a href="https://cdn.sstatic.net/" rel="nofollow noreferrer">https://cdn.sstatic.net/</a></p>
  
  <p>Delivered over HTTP 1.1: <a href="https://stackoverflow.com/">https://stackoverflow.com/</a></p>