I host my website on example.com I host my graphQL backend on graphql.example.com which serves JSON over CORS. As I understand it, every request to window.fetch('https://graphql.example.com/', ...) requires creating a new connection. I know that the browser is able to reuse the same connection for multiple assets made to example.com via http2. For example, if my webpage has the <img>s example.com/a.jpg and example.com/b.jpg I only have to pay setting up the cost of the connection once.
Is there anyway to reuse the connection in a similar way
- (a) with
window.fetch() - (b) to another domain requiring CORS
